Hi,
I have a structure of three objects linked like this:
A many-to-one with B (with cascade=all)
B with a List of C objects. (with lazy=false, with cascade=all)
A,B and C have as key (chvp, generator class="increment")
I'm trying to do this:
Load the object A and all of its children.
Put all the keys(chvp) of the three elements == null and save.
The new element A and B are created with no problem but, the C elements, when created performs an update in the initial list (B->C).
Can you help me?
thanks
|