I'm adding a child to an existing parent and then merging parent.
All objects are updated properly in the database, however the child object's primary key is not updated.
I tried adding a flush after the merge, that didn't help. I can see through logging that the merge does cause the SQL to run and the child is assigned a primary key, this key just isn't updated in the object. When I change the merge to a persist, everything works beautifully.
This worked in toplink 2006.8 Build 060829, but does not work in any of the the 2.0 or 2.1 builds I've tried. Is this expected behavior?? Thanks!
[Message sent by forum member 'jfitz' (jfitz)]
http://forums.java.net/jive/thread.jspa?messageID=270004