Tag Archives: ehcache

ehcache and hibernate: cache of collections

Last post I wrote about activating the hibernate second-level cache. Now, let’s see how to activate the second-level cache for collections. In this example I’ll use a Customer with Orders. Please, take a look in the representation of the relationship … Continue reading

Posted in any | Tagged , , , , | Leave a comment

hibernate: activating the second-level cache

Hibernate has two different cache levels: the first-level and the second-level cache. The first one is always activated. The second-level cache is up to you. So, first-level cache, it’s related to session objects, i.e, objects on the managed state. These … Continue reading

Posted in any | Tagged , , , | 1 Comment