-->
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: Select after merge on Hibernate
PostPosted: Fri May 04, 2012 7:23 am 
Newbie

Joined: Thu Apr 05, 2012 7:30 am
Posts: 4
Hi,

I want to select an entity with it's children (join) after having merged (updated) the same entity within the same service (transaction). I know that merge return the object you updated but this object has the data which has been updated, not all the entity with the data of the database. Additionally, If after merging I execute an select trying to get the entity with all it's children, it return's the object updated only with the data updated (the rest of fields and children entities are null).

is there any way to resolve it? It's mandatory to execute everything in the same transaction because the service have a lot of database operations that must be executed correctly before committing.

Thanks.
Regards.


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.