I am upgrading to hibernate 2.1.3 from 2.0.1 and upgrading from jcs to ehcache.
In section 14.3 of the documentation, the following line is present:
Alternatively (preferrably?), you may specify <class-cache> and <collection-cache> elements in hibernate.cfg.xml.
This is great except that in section 1.1, in the example hibernate.cfg.xml, here is the header for the xml file:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
The hibernate-configuration-2.0.dtd does not allow the <class-cache> or <collection-cache> elements. I know that I can put a <cache> element in each of my .hbm.xml mapping files but I prefer putting the cache statements in the hibernate.cfg.xml. Will Hibernate still perform correctly using the old <jcs-cache> and <jcs-collection-cache> elements from hibernate 2.0 while using ehcache as the cache provider? Is this a bug? Am I missing something?
|