문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
java:hibernate:configuration [2018/12/11 15:53] kwon37xi [hibernate.hbm2ddl.auto 프라퍼티] |
java:hibernate:configuration [2022/05/16 16:28] kwon37xi [Hibernate Configurations] |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Hibernate Configurations ====== | ====== Hibernate Configurations ====== | ||
- | * http:// | ||
* hibernate properties, property | * hibernate properties, property | ||
- | ====== hibernate.hbm2ddl.auto 프라퍼티 | + | * [[https:// |
+ | * [[https:// | ||
+ | ===== hibernate.hbm2ddl.auto 프라퍼티 ===== | ||
* http:// | * http:// | ||
* [[https:// | * [[https:// | ||
줄 13: | 줄 14: | ||
* 개발시에는 create가, 운영시에는 auto 설정을 빼거나 validate 정도로 두는 것이 좋아 보인다. update로 둘 경우에, 개발자들의 스키마가 마구 꼬여서 결국은 drop 해서 새로 만들어야 하는 사태가 발생한다. | * 개발시에는 create가, 운영시에는 auto 설정을 빼거나 validate 정도로 두는 것이 좋아 보인다. update로 둘 경우에, 개발자들의 스키마가 마구 꼬여서 결국은 drop 해서 새로 만들어야 하는 사태가 발생한다. | ||
- | ====== hibernate.use_sql_comments 프라퍼티 | + | ===== hibernate.use_sql_comments 프라퍼티 ===== |
* Native SQL 쿼리로 변환할 때 쿼리에 대한 주석을 함께 달아준다. | * Native SQL 쿼리로 변환할 때 쿼리에 대한 주석을 함께 달아준다. | ||
- | ====== hibernate.jdbc.time_zone | + | ===== hibernate.jdbc.time_zone ===== |
* [[http:// | * [[http:// | ||
* Hibernate 5.2.3 부터 Timestamp, Calendar 저장시 원하는 Timezone 으로 저장하도록 할 수 있다. | * Hibernate 5.2.3 부터 Timestamp, Calendar 저장시 원하는 Timezone 으로 저장하도록 할 수 있다. | ||
줄 32: | 줄 33: | ||
</ | </ | ||
- | ====== hibernate.temp.use_jdbc_metadata_defaults | + | ===== hibernate.temp.use_jdbc_metadata_defaults ===== |
* DB Sharding 처리를 Spring 차원에서 하고자할 때 '' | * DB Sharding 처리를 Spring 차원에서 하고자할 때 '' | ||
* [[http:// | * [[http:// | ||
줄 45: | 줄 46: | ||
boolean useJdbcMetadata = ConfigurationHelper.getBoolean( " | boolean useJdbcMetadata = ConfigurationHelper.getBoolean( " | ||
</ | </ | ||
+ | |||
+ | ===== hibernate.enable_lazy_load_no_trans=true 금지 ===== | ||
+ | * '' | ||
+ | * [[https:// | ||
+ | |||
+ | ===== hibernate.globally_quoted_identifiers=true ===== | ||
+ | < | ||
+ | hibernate.globally_quoted_identifiers=true | ||
+ | hibernate.globally_quoted_identifiers_skip_column_definitions=true | ||
+ | </ | ||
+ | |||
+ | * column, table 이름 등이 DB의 keyword 와 충돌할 때 대비하여 기본적으로 quote 시켜준다. DB별로 다른 quote 사용. | ||
+ | * 단, '' | ||
+ | * [[https:// | ||
+ | |||
+ | ===== hibernate.query.in_clause_parameter_padding ===== | ||
+ | ===== hibernate.query.plan_cache_max_size ===== | ||
+ | * [[java: | ||