Sorry my english... Where are you do the operation? Paste the code Juan
2011/3/9 Juan Pablo Gardella <[email protected]> > Where are you this? Post the code > > Juan > > 2011/3/9 Vasily <[email protected]> > > Hi All, have simple case: >> >> @RooJavaBean >> @RooToString >> @RooEntity >> public class Contact { >> >> @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER, >> mappedBy="contact", orphanRemoval=true) >> private List<Phone> phoneList = new ArrayList<Phone>(); >> } >> >> @RooJavaBean >> @RooToString >> @RooEntity >> public class Phone{ >> private String phone; >> >> @ManyToOne(optional = false) >> private Contact contact; >> } >> >> I want to remove Phone items from DB table as soon as I'm removing >> them from Contact.phoneList so I found I can use 'orphanRemoval=true'. >> >> All works fine, until I'm adding 'orphanRemoval=true' to >> annotations... After that, I have no errors, but any changes to >> entities not persisting at all... :/ >> >> MySql 5.5.8 >> Hibernate 3.6.1 (3.6.0 also tested with same results) >> >> Ideas? Thx! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
