-->
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.  [ 2 posts ] 
Author Message
 Post subject: Question on session.find() v.s query.list
PostPosted: Thu Apr 28, 2005 9:57 am 
Newbie

Joined: Fri Oct 17, 2003 11:31 am
Posts: 19
I'm looking to get a perspective from the forum on the following question :

I'm trying to figure out what the main differences are between using session.find() and using query.list(). From what I've read in the docs there doesn't seem to be an apparent difference between the two (as far as efficiency, overhead, stale data, etc).

What are people using, and what are the pros and cons of each approach?

Thanks for any input you may have.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 28, 2005 5:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Well, session.find() creates a query for you and then calls its list() method; so no difference. Make your life easier and use Query.list() if you have any plans to move to Hibernate3.


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

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.