behaviour « Cascade « JPA Q&A





1. Cascading behaviour can be overwritten?    forum.hibernate.org

Hi all, is there some possibility to overwrite the cascading behaviour at runtime? I have @OneToMany(mappedBy = "customer", fetch = FetchType.EAGER) @Cascade( { CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set getCorrespondence() { ... That is perfect in almost all cases, but in one case I want to persist without the cascading behaviour. Any way to do that? Michael

2. Cascade behaviour    forum.hibernate.org

HI, I'm trying to understand the behaviour of cascade This is my mapping for a 'File' object, which can have many 'Field' objects Code: @OneToMany(fetch=FetchType.LAZY) @JoinTable( name="BULK_UPLOAD_FILE_TYPE_FIELD", joinColumns = ...