I issue a query to get all messages from the database.  I then get all staff
from the database.  Staff has a collection of messages based on the staff id
on the message.  All the messages are already loaded, but there are still
seperate SQLs generated for each staff to get it's messages.

Is there a way to get Hibernate to look in the cache when loading
collections?  If not, could someone give me a few pointers on where in the
code I should look to add such a feature?  (I envision a switch on session
to tell it to look in the cache or not).

Thanks,
John


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to