Hi All,
I am getting errors when I try to save an object having its child relations.. For e.g. I have 3 classes A is a parent of B, and B is a parent of C When I try to save object A using session.save(A), I got the following error: "Could not delete collection: Persistance.A.B" I have not specified any cascade condition against bag of class B, in mapping file of class A I need to save all the objects (remember, not update - as these objects are newly created)
When I set cascade="all-delete-orphan", exception says: "Don't dereference a collection with cascade=all-delete-orphan": Persistance.A.B
Any help will be welcomed..
Thans, Ovais
|