1. Natural key second level cache forum.hibernate.orgIs it possible to set up the second level cache to be indexed by a natural key rather than the primary key? We have objects with an auto generated Id, but which are accessed by name primarily - thus the second level cache is bypassed. I have a relatively small number of very slow moving objects (config type data - approx ... |
2. caching by alternate unique keys forum.hibernate.orgOur database object has an autogenerated primary key along with other alternate unique keys. We use the hibernate second-level cache for these objects, but most often we are looking up by the alternate unique keys and the second level cache does not help for these situations. We would enable the query cache, but our queries use an in clause and take ... |
3. ClassCastException from CGLIB when using Cache and comp Key forum.hibernate.orgNewbie Joined: Tue Mar 08, 2005 7:16 am Posts: 8 Hi all, Specific details are below but here's a description. We're using Hibernate along with the 2nd level caching for our read only app. Everything works fine the first time the app is started and the caches are populated (and persisted to disk). However, if we bounce the app we get ... |
4. Caching non primary key look ups forum.hibernate.org |
5. Caching by foreign key in the second level cache forum.hibernate.org |
6. Looking up non-existing primary keys in 2nd level cache forum.hibernate.org |