Notice
Recent Posts
Recent Comments
Link
«   2026/04   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
Archives
Today
Total
관리 메뉴

0gam

JPA Cascade Types 본문

Hibernate, JPA

JPA Cascade Types

byeon0gam 2018. 5. 30. 18:19

JPA Cascade Types

The cascade types supported by the Java Persistence Architecture are as below:

  1. CascadeType.PERSIST : means that save() or persist() operations cascade to related entities.
  2. CascadeType.MERGE : means that related entities are merged when the owning entity is merged.
  3. CascadeType.REFRESH : does the same thing for the refresh() operation.
  4. CascadeType.REMOVE : removes all related entities association with this setting when the owning entity is deleted.
  5. CascadeType.DETACH : detaches all related entities if a “manual detach” occurs.
  6. CascadeType.ALL : is shorthand for all of the above cascade operations.



'Hibernate, JPA' 카테고리의 다른 글

fetch=FetchType.LAZY and EAGER  (0) 2016.07.08
JPA, cascade  (0) 2016.07.07
javax.persistence.Transient;  (0) 2016.06.24