1. ehcache max-elements on collection forum.hibernate.orgHello I'm just considering using ehcache but it's not very clear to me from the docs where the "maxElementsInMemory" setting refers, when being used for a collection association. For example, having an entity Hotel and an association Set |
2. |
3. Maximum elements per cache? forum.hibernate.org |
4. Loosing Elements in Second Level Cache forum.hibernate.orgHi, We are facing problem in Second Level cache. We have observed that whenever below query gets fire, all the elements in Second Level Cache of all the regions get evicted. Total size & elements become zero. String sql = "delete from EmployeeContactRelationship ecr where ecr.teamID in(:teamIDList) and ecr.contactID in(:contactIDList)"; Query query = sessionFactory.getCurrentSession().createQuery( sql ); query.setParameterList("teamIDList", teamIDList); query.setParameterList("contactIDList", contactIDList); query.executeUpdate(); ... |