Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 2.13 KB

README.md

File metadata and controls

48 lines (36 loc) · 2.13 KB

Chapter 1 : Assoications

Item 1: How to Effectively Shape the @OneToMany Association

Item 2: Why You Should Avoid the Unidirectional @OneToMany Association

Item 3: How Efficient Is the Unidirectional @ManyToOne

Item 4: How to Effectively Shape the @ManyToMany Association

Item 5: Why Set Is Better than List in @ManyToMany

Item 6: Why and When to Avoid Removing Child Entities with CascadeType.Remove and orphanRemoval=true

Item 7: How to Fetch Associations via JPA Entity Graphs

Item 8: How to Fetch Associations via Entity Sub-Graphs

Item 9: How to Handle Entity Graphs and Basic Attributes

Item 10: How to Filter Associations via a Hibernate-Specific @Where Annotation

Item 11: How to Optimize Unidirectional/Bidirectional @OneToOne via @MapsId

Item 12: How to Validate that Only One Association Is Non-Null

Warning
Trigger 생성을 포함하며, 다음과 같은 오류가 발생할 수 있습니다.
You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)

이 경우 root 권한으로 다음과 같이 확인 및 조치해 주시면 됩니다.
show global variables like 'log_bin_trust_function_creators';
OFF이면 다음과 같이 실행 해주세요.
SET GLOBAL log_bin_trust_function_creators=ON;