Hibernate version: 1.3.1
Code between sessionFactory.openSession() and session.close():
Code:
List output = session.createCriteria( ... )
.add(Restrictions.eq( ... ))
.setCacheable( true )
.list();
Full stack trace of any exception that occurs:no errors, exceptions, or warnings. no functionality problems at all.
Hello,
I'm using Java 1.5, Hibernate 3.1.3, annotations, and EHCache 1.1 with overflowToDisk="false" (query cache and second level cache are on).
I call something like this:
Code:
List output = session.createCriteria( ... )
.add(Restrictions.eq( ... ))
.setCacheable( true )
.list();
In the example above, assume that everything was ALREADY cached in the query cache and in the second level cache.
So, in the example above, the .list() function would just return a copy of the data in the second level cache (keyed on the data in the query cache). Right?
Instead of getting a COPY of the data in the second level cache, can I just get references
directly to the data in the second level cache?
In other words, since I won't be changing anything returned from .list() function, I don't want a COPY of the data because I'm running out of memory. I want the data itself, not a copy of the data.
thank you for your help,
VT_Hokies