I'm a newbie with the 2nd level cache and had a few questions:
1. When I declare a cache element in the mapping file for a persistent entity, do I then have to configure that object in the ehcache config?
2. Do I need to enter the path to the ehcache-config.xml file as a hibernate property? If not, is there a specific home for it?
3. If I declare a cache element for an entity to be read-write, does this entity get persisted to the database if changes are made to the instance in the cache?
Thanks for your time.
|