-->
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: Reattaching an unmodified object
PostPosted: Thu Dec 16, 2004 7:19 am 
Newbie

Joined: Thu Dec 16, 2004 7:11 am
Posts: 7
I was reading Emmanuel's blog post here: http://blog.hibernate.org/cgi-bin/blosxom.cgi/2004/12/15#lockmode and came upon this sentence:

Quote:
I used load() instead of get(), it allows me to get a proxy if available and thus don't hit the DB at all


I wasn't aware of any differences between load and get besides throwing an exception vs. returning null. Does this mean that session.get will always query the db, even if the entity is already in the 2nd level cache, or is it something else?


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.