The question from Ransom will work if you work through EntityManager and use pure JPA annotations. But if you use Hibernate directly, you need to use your own annotation for cascading.
import org.hibernate.annotations.Cascade; import org.hibernate.annotations.CascadeType; ... @OneToMany @Cascade({CascadeType.SAVE_UPDATE, CascadeType.DELETE}) public List<FieldEntity> getB() { return fields; }
source share