-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Merge Operation and Transient Entities
PostPosted: Fri Jul 11, 2008 11:12 am 
Newbie

Joined: Fri Jul 11, 2008 10:45 am
Posts: 5
I have a reference A to an entity C that has not been persisted. I invoke merge and obtain a reference B to the merged instance. (the Id has not been set as it is a generated Id). If I serialize and deserialize B, update an attribute and perform a merge, this does not associate itself with C (probably because no Id has been set).

It used to be that you could manipulate this situation as hibernate would use equals to test for equality. So you could have a javax.persistence.Transient that holds a transient identifier that you could use in the equals method. It does not appear to use equals any more so what can I do to achieve the same results?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.