1. Move object from one parent collection to another forum.hibernate.orgI'm using Hibernate 2.1.x with these mappings: Code: |
2. moving one-to-many collection betwen parents forum.hibernate.orgif I have a realtion of a cat and kittens (1 - *) I want to remove all kittens from one cat to the another cat. Can I do that this way: cat2.getKittens().addAll(cat1.getKittens()); cat1.getKittens().clear(); If not then what is the best way of doing that, and in general, when moving a child from one parent to another? Also is there a ... |
3. Collection of cpomponents, |