1. Trying to understand difference in CascadeType.ALL vs. @OnDelete! stackoverflow.comLet me get my question straight, using the |
2. Hibernate: OnDelete vs cascade=CascadeType.REMOVE stackoverflow.comWhat is the difference between |
3. OnDelete Cascade on JPA with annotations only (DB2Dialect) forum.hibernate.orgHello, I have red all JPA OnDelete forum threads, but these are not finished with a solution. I want to test DELETE CASCADE on DBMS side with JPA and annotations only an got problems. I have a class Items that has Many Item elements : @org.hibernate.annotations.Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) @org.hibernate.annotations.OnDelete(action = org.hibernate.annotations.OnDeleteAction.CASCADE) @org.hibernate.annotations.Cascade( { org.hibernate.annotations.CascadeType.DELETE_ORPHAN } ) @OneToMany(targetEntity = com.Item.class, cascade = ... |