I need to annotate a OneToMany relationship like so...
| @OneToMany(mappedBy="remittancePackage", cascade= {CascadeType.ALL,
org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
|
However, this does not compile becuse the "cascade" parameter is of type
java.persitence.CascadeType. How do I do this?
I need this behavior...
anonymous wrote :
| If the child object's lifespan is bounded by the lifespan of the parent
object, make the parent a full lifecycle object by specifying CascadeType.ALL
and org.hibernate.annotations.CascadeType.DELETE_ORPHAN (please refer to the
Hibernate reference guide for the semantics of orphan delete)
|
And yes, I've read the Hibernate docs. Good for reference but doesn't tell you
how to do this in EJB3 with annotations.
Thanks.
Eric Ray
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962905#3962905
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962905
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user