사용자 도구

사이트 도구


java:hibernate

차이

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

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
java:hibernate [2015/06/03 18:03]
kwon37xi
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: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]]
줄 33: 줄 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]] 6.0 에서 해결 될 수도 있음.
 +  * 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 문자 써 줄것.
 +
  
 ===== 참조 ===== ===== 참조 =====
줄 39: 줄 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://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]]
 +
java/hibernate.txt · 마지막으로 수정됨: 2021/10/07 22:05 저자 kwon37xi