-->
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: jpa merge without synching to the database?
PostPosted: Thu Feb 17, 2011 3:21 pm 
Newbie

Joined: Fri Jul 09, 2010 3:55 pm
Posts: 4
If I have a detached entity and I do a merge() for various reasons Hibernate does a SELECT against the database.

My question is: if I have a detached entity and I know that it exists in the database and the data that it holds is identical to the one in the database, is there is a way to prevent Hibernate from doing the SELECT when I do the merge and make the entity directly managed by the persistence context so I can now use it or modify it as needed?


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.