Hibernate version:
2.1.8
Mapping documents:
<...mutable="false">
<cache usage="read-only"/>
<id name="id" column="name">
<generator class="assigned"/>
</id>
...
Code between sessionFactory.openSession() and session.close():
getHibernateTemplate().loadAll(com.x.MyClass);
Full stack trace of any exception that occurs:
No Exceptions
Name and version of the database you are using:
MS SQL Server 2k + jtds 1.0.2
The generated SQL (show_sql=true):
...
Debug level Hibernate log excerpt:
log4j.properties->org.hibernate.cache=DEBUG
My synthetic keyed class hits, my assigned key classes don't. The synth are tables from my app, the assigned are legacy from the same database. All usage classes cache, according to
logs, but ony the synth hits. These are read-only objects for dropdown menus etc.
I have not specified an ehcache.xml file. Is ehcache.xml mandatory? Does ehcache support assigned keys out of the box?
Thanks!
|