On 9/23/05, Patrick Casey <[EMAIL PROTECTED]> wrote: > > > > > I rather have a DB Query than a lazy exception. And not for every call! > > The hibernate cache is here for that. > > If memory serves, the hibernate cache caches keys, not objects.
This is not true. The hibernate second level cache is a map with <key, object>, If your key is found in the cache then it retrieves the object (memory or file depending on your cache configuration). We achieve a high performance by having it properly configured on a per-class basis even with complex queries. Henri. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
