사용자 도구

사이트 도구


java:jpa:association

차이

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

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
마지막 판 양쪽 다음 판
java:jpa:association [2018/09/10 12:33]
kwon37xi
java:jpa:association [2020/01/14 13:28]
kwon37xi
줄 3: 줄 3:
   * [[java:jpa:map|JPA Map]]   * [[java:jpa:map|JPA Map]]
  
-====== 관계 =====+===== 관계 ====
   * [[https://www.baeldung.com/jpa-join-column|@JoinColumn Annotation Explained | Baeldung]]   * [[https://www.baeldung.com/jpa-join-column|@JoinColumn Annotation Explained | Baeldung]]
     * ''@JoinColumns''로 복합키 조인도 처리 가능     * ''@JoinColumns''로 복합키 조인도 처리 가능
 +
 +===== to-many 주의 =====
 +  * ''to-many'' 관계에 대해서 join fetch 하지 말 것.
 +  * [[java:hibernate:gotchas|Hibernate/JPA Gotchas]] 참고.
 +
 ===== Entity Graph / JPA 2.1 ===== ===== Entity Graph / JPA 2.1 =====
   * [[https://www.youtube.com/watch?v=Dr5Qn6NC-3Y|5 ways to initialize lazy associations and when to use them - YouTube]]   * [[https://www.youtube.com/watch?v=Dr5Qn6NC-3Y|5 ways to initialize lazy associations and when to use them - YouTube]]
줄 36: 줄 41:
   * [[https://vladmihalcea.com/how-to-customize-an-entity-association-join-on-clause-with-hibernate-joinformula/|How to customize an entity association JOIN ON clause with Hibernate @JoinFormula - Vlad Mihalcea]]   * [[https://vladmihalcea.com/how-to-customize-an-entity-association-join-on-clause-with-hibernate-joinformula/|How to customize an entity association JOIN ON clause with Hibernate @JoinFormula - Vlad Mihalcea]]
   * [[https://vladmihalcea.com/how-to-map-the-latest-child-of-a-parent-entity-using-hibernate-joinformula/#more-6983|How to map the latest child of a parent entity using Hibernate @JoinFormula - Vlad Mihalcea]]   * [[https://vladmihalcea.com/how-to-map-the-latest-child-of-a-parent-entity-using-hibernate-joinformula/#more-6983|How to map the latest child of a parent entity using Hibernate @JoinFormula - Vlad Mihalcea]]
 +
 +=== 참조 ===
 +  * [[https://www.baeldung.com/jpa-join-types|JPA Join Types | Baeldung]]
  
java/jpa/association.txt · 마지막으로 수정됨: 2020/11/12 14:53 저자 kwon37xi