cache « ID « JPA Q&A





1. JPA/HIBERNATE - Are objects instances cached indexed just by id?    stackoverflow.com

Probably it is a basic question, but could not found the answer anywhere in the web. I am trying to use a second level cache (using ehcache) and just checked that ...

2. 2nd Level Cache changes behaviour of Session.get(class, id)    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.2 Hallo, I'm sure it's not a bug but a feature, but I do not understand the following: I have the following mapping file: Code: ...

3. Does second level cache work for both natural and primary ID    forum.hibernate.org

Has anybody done anything like this an shed light on it? Any input would be appreciated. thanks. First, 2 classes, and a mapping. The key thing is a many-to-one relationship single ended, from one to the other. Code: public class First{ Long ID; Long Name; ...