From: Christian M. <vc...@cl...> - 2002-09-17 03:22:45
|
I realize that i completly misunderstood which kind of cache Hibernate = provides..... At the moment it appears that hibernate provide either: Cache for immutable objects ( called read-only cache ) Cache for mutable objects ( called read-write cache) It was a semantic issue, for me a read-only cache is a cache where you = never write update in the cache but flush it when an object is updated = while read-write cache will update also the cache entry for the object. = Both those caches are caching mutable objects.... In your read-write cache scenario, i guess you are updating the cache = isnt it ? ( a true read-write cache for mutable objects ) Regards Christian Meunier ----- Original Message -----=20 From: Christian Meunier=20 To: hib...@li...=20 Sent: Monday, September 16, 2002 4:50 AM Subject: [Hibernate] JCS Read only cache and the doc Hi, it's me or the documentation is a bit ambiguous about read only = cache ? "If your application needs to read but never modify instances of a = persistent class, a 'readonly' cache may be used" When i read this, i understand that my persistent class need be to = read only if i want to be able to use a read-only cache. Regards Christian Meunier |