On 9/24/05, Patrick Casey <[EMAIL PROTECTED]> wrote: > > Henri, > > Where are you getting your information from? According to my copy of > Hibernate in action (pp 291 Secion 7.6.3). > > "Note that the query cache does *not* cache the entities returning > in the query reslut set, just the identifier values." >
Ok 1st Cacheable statements. If you look at the current hibernate documentation, there is a feature based on natural-id (has appeared in one of the recent versions) and also an explanation of the cache and queries: http://www.hibernate.org/hib_docs/v3/reference/en/html/querycriteria.html#query-criteria-naturalid But even without natural-id, it seems to work pretty well for us. I made sure that the equals and hashcode tests on the parameters are true for two similar objects . 2nd: cache: I'm basing that on our website and our tests. It takes quite a bit of time to configure the cache correctly but for all our table that are used 99% of the time in read mode, everything goes in the cache and the retrieval is made in memory. Henri. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
