Hibernate version: 3.2.0.cr4
Hello,
I am using Spring with Hibernate.
I have been able to get simple objects to cache but when I try to cache an object that has a composite id and contains a set it will not cache. I have set <cache usage="read-write"/> in the .hbm, setup the ehcache config and am
Code:
HibernateTemplate ht = getHibernateTemplate();
ht.setCacheQueries(true);
return ht.loadAll(clazz);
doing this to get the objects. The first time a single sql is generated that gets all the objects. Every time after that it seems to issue single sql statements for each object using the composite id.
Id there anything different with caching when you either have a composite id or a set?