사용자 도구

사이트 도구


java:hibernate

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
마지막 판 양쪽 다음 판
java:hibernate [2015/11/14 15:09]
kwon37xi [Hibernate Test Caset Template]
java:hibernate [2019/01/03 14:42]
kwon37xi [SQL / JPQL / HQL Keyword]
줄 1: 줄 1:
 ====== Hibernate ====== ====== Hibernate ======
 +  * [[https://​plus.google.com/​+GavinKing/​posts/​LGJU1NorAvY|Just because you're using Hibernate, doesn'​t mean you have to use it for everything. A point I've been making for about ten years now. - Gavin King]]
   * [[java:​hibernate:​4|Hibernate 4]]   * [[java:​hibernate:​4|Hibernate 4]]
   * [[java:​hibernate:​5|Hibernate 5]]   * [[java:​hibernate:​5|Hibernate 5]]
 +  * [[java:​hibernate:​test|Hibernate Test]]
   * [[http://​neilhan.blogspot.com/​2006/​11/​spring-hibernate-and-mysql-replication.html|Spring Hibernate and MySql Replication]]   * [[http://​neilhan.blogspot.com/​2006/​11/​spring-hibernate-and-mysql-replication.html|Spring Hibernate and MySql Replication]]
   * [[http://​docs.redhat.com/​docs/​en-US/​JBoss_Enterprise_Web_Platform/​5/​html/​Hibernate_Annotations_Reference_Guide/​entity-hibspec.html|Hibernate Annotation extensions]]   * [[http://​docs.redhat.com/​docs/​en-US/​JBoss_Enterprise_Web_Platform/​5/​html/​Hibernate_Annotations_Reference_Guide/​entity-hibspec.html|Hibernate Annotation extensions]]
줄 34: 줄 36:
 ORDER BY k.`news_master_id` ASC ORDER BY k.`news_master_id` ASC
 </​code>​ </​code>​
 +
 +===== SQL / JPQL / HQL Keyword =====
 +  * [[https://​stackoverflow.com/​questions/​29230286/​spring-jpa-in-word-in-package-name-of-entity-class-results-in-jpql-error|java - Spring JPA - "​in"​ word in package name of Entity Class - Results in JPQL Error]]
 +  * [[https://​hibernate.atlassian.net/​browse/​HHH-11784|[HHH-11784] HQL query fails if entity is inside a package which starts with "​in"​ or "​by"​ - Hibernate JIRA]]
 +  * Entity 의 package name 에 ''​in''​이 들어 있을 경우, 이를 가지고 full package name으로 JPQL을 생성하면 ''​in''​을 JPQL Keyword로 인식해서 동작하지 않는 현상이 발생했다.
 +  * **패키지 이름에서 ''​in''​ 같은 JPQL, SQL Keyword 단어가 안들어가게** 할 것.
 +  * [[https://​www.mkyong.com/​hibernate/​how-to-use-database-reserved-keyword-in-hibernate/​|How to use database reserved keyword in Hibernate?​]] : ''​@Column(name="​`desc`"​)''​ 처럼 DB에 적합한 escape 문자 써 줄것.
 +
  
 ===== 참조 ===== ===== 참조 =====
줄 40: 줄 50:
   * [[http://​www.tutorialspoint.com/​hibernate/​index.htm|Hibernate Tutorial]]   * [[http://​www.tutorialspoint.com/​hibernate/​index.htm|Hibernate Tutorial]]
   * [[http://​vladmihalcea.com/​tutorials/​hibernate/​|Hiberante Tutorial]] 성능, Cache 관련 부분 꼭 읽어볼 것.   * [[http://​vladmihalcea.com/​tutorials/​hibernate/​|Hiberante Tutorial]] 성능, Cache 관련 부분 꼭 읽어볼 것.
-  *   * [[http://​fruzenshtein.com/​hibernate-join-table-intermediary/​|Hibernate:​ Bidirectional example of @JoinTable annotation]]+  * [[http://​fruzenshtein.com/​hibernate-join-table-intermediary/​|Hibernate:​ Bidirectional example of @JoinTable annotation]] 
 +  * [[http://​www.thoughts-on-java.org/​tips/​|Hibernate Tips - Thoughts on Java]] 
 +  * [[http://​www.thoughts-on-java.org/​hibernate-best-practices/​|Hibernate Best Practices]] 
 +  * [[https://​www.javacodegeeks.com/​2018/​03/​different-hibernate-naming-strategy.html|Different Hibernate Naming Strategy | Java Code Geeks - 2018]] 
 +  * [[https://​www.baeldung.com/​hibernate-entity-lifecycle|Hibernate Entity Lifecycle | Baeldung]] 
 +  * [[https://​vladmihalcea.com/​spring-read-only-transaction-hibernate-optimization/​|Spring read-only transaction Hibernate optimization - Vlad Mihalcea]]
  
-===== Hibernate Test Caset Template ===== 
-  * Hibernate Issue Reporting 등을 할 때 테스트 케이스를 만들어서 제공해야 한다. 
-  * [[http://​in.relation.to/​2015/​06/​26/​hibernate-test-case-templates/​|Hibernate Test Case Templates]] 
-    * [[https://​github.com/​hibernate/​hibernate-test-case-templates|hibernate-test-case-templates github]] 
-  * [[https://​github.com/​hibernate/​hibernate-orm/​wiki/​Hibernate-JUnit-Infastructure|Hibernate JUnit Infrastructure]] 
java/hibernate.txt · 마지막으로 수정됨: 2019/01/03 14:42 저자 kwon37xi