[jboss-user] [EJB 3.0] - Re: OneToMany Unidirectional EntityManager remove() problem
jaikiran
do-not-reply at jboss.com
Mon May 19 10:04:20 EDT 2008
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#4151775
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151775
More information about the jboss-user
mailing list