[jboss-user] [EJB 3.0] - Re: Can't get DELETE_ORPHAN to work with java.persistence.Ca
c_eric_ray
do-not-reply at jboss.com
Thu Aug 3 13:01:49 EDT 2006
the answer is...
| @OneToMany(mappedBy="remittancePackage", cascade=CascadeType.ALL)
| @Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN)
|
where @Cascade os a hibernate Cascade object.
Would be nice if these hints were in the documention. It really helps those of use who are not experienced with hibernate.
Thanks
Eric Ray
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962937#3962937
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962937
More information about the jboss-user
mailing list