0gam
JPA Cascade Types 본문
JPA Cascade Types
The cascade types supported by the Java Persistence Architecture are as below:
- CascadeType.PERSIST : means that save() or persist() operations cascade to related entities.
- CascadeType.MERGE : means that related entities are merged when the owning entity is merged.
- CascadeType.REFRESH : does the same thing for the refresh() operation.
- CascadeType.REMOVE : removes all related entities association with this setting when the owning entity is deleted.
- CascadeType.DETACH : detaches all related entities if a “manual detach” occurs.
- 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 |