Hibernate version:
2.1.6
Name and version of the database you are using:
Oracle 9i
Here's the scenario : Parent class P has a set of child elements C, and I am mapping this collection as a one-to-many relationship between P and C. I am using inverse=true, and cascade='all-delete-orphan".
However, when I save the parent P, Hibernate issues two SQL statements for both P and C. The first two statements insert P and C, and the next two statements update P and C. The updates are always redundant, and should not be issued because the relationship between P and C is created during the inserts.
What could I be doing wrong ?
Thanks,
-Anurag
|