Add an additional annotation org.hibernate.annotations.Cascade to your OneToMany mapping,
as follows:
@OneToMany(cascade = {CascadeType.ALL})
| @JoinColumn(name="PROFILE_ID")
|
@org.hibernate.annotations.Cascade(value=org.hibernate.annotations.CascadeType.DELETE_ORPHAN)
| public Collection getQueryProfileBean()
| {
| return queryProfileBean;
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151775#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...