From: Urberg, J. <ju...@ve...> - 2002-08-01 13:45:59
|
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 |