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: persistent of same reference twice
PostPosted: Sun Apr 25, 2010 11:42 am 
Newbie

Joined: Sun Apr 25, 2010 11:32 am
Posts: 1
Hello,

I tried to save an object - (object1) that is contained by 2 different objects (object2 and object3).
first, when i saved object2 - it succeeded and the object was saved (object 2 contains object1)
than, i tried to save object3 (that contains also object1 - the same reference) and it cause
transient object exception.
i also noticed that in the object2 - object1 has id
and in the object3- object1 doesn't have id although object1 is the same reference in both of the objects.

what should i do?
how could i inform object3 that object1 inside of him is already saves and has id..?


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.