Results 1 to 1 of 1
- 06-04-2008, 01:24 PM #1Member
- Join Date
- Jun 2008
- Rep Power
Second level caching in Hibernate: when it works?
I correctly understand that the second-level cache works for entities (or classes) only when an entity extracted directly from database (for example through method .load (..)) or when the entity is included in the collection of another entity (through links one-to-many, many-to-many and etc.)?
When the entities retrieve through the Criteria API (with a complex request inside), the cache is not used? Here I mean not hql, namely Criteria API, for example, using "Junction".
- By leonus in forum JDBCReplies: 0Last Post: 06-02-2008, 01:06 PM
- By narayanasgs in forum Web FrameworksReplies: 0Last Post: 05-30-2008, 08:34 AM
- By Fleur in forum New To JavaReplies: 11Last Post: 05-29-2008, 09:04 AM
- By keshari in forum New To JavaReplies: 1Last Post: 05-26-2008, 08:23 AM
- By Java Tip in forum Java TipReplies: 0Last Post: 04-01-2008, 10:40 AM