define a hibernate specific annotation, because this kind of deleting ejb3 spec
does not support. In hibernate it's delete_orphan cascade type..
use
| @OneToMany(fetch = FetchType.LAZY, mappedBy = "felhasznalok")
| @org.hibernate.annotations.Cascade( {
| org.hibernate.annotations.CascadeType.ALL,
| org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
| public Set<Kedvencek> getKedvenceks() {
| return this.kedvenceks;
| }
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970610#3970610
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970610
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user