| merge not updating pk IDs [message #548449] |
Wed, 21 July 2010 17:23  |
Jay Hook Messages: 6 Registered: July 2010 |
Junior Member |
|
|
I'm a little new to eclipselink, but I'm having an issue I hope someone can help me with.
When I merge a parent entity that already been persisted, but has newly created children objects, the new PK for the child objects do not get populated into the java object. The store works fine, but the children PK are still null. Am I missing something configuration wise? I can post code samples if helpful.
Thanks.
|
|
|
|
|
|
|
|
|
|
| Re: merge not updating pk IDs [message #667535 is a reply to message #548449] |
Fri, 29 April 2011 08:21  |
Matias Messages: 2 Registered: April 2011 |
Junior Member |
|
|
Hi,
I have a problem, we are migrating many applications built with JPA and TopLink Essentials to EclipseLink , in the case of TopLink Essentials operated as follows:
objectA = em.merge (objectB)
objectA == objectB
Then in objectB was set the pk of the entity. But eclipselink as explained in previous messages do not work this way and the pk of objectB remains null. There is any way to get the behavior described above, since the impact of changing the whole implementation would be too much.
Thanks in advance for your response.
|
|
|
Powered by
FUDForum. Page generated in 0.01691 seconds