When and how to use hibernate second level cache?
First of all, let’s talk about process level cache (or 2nd level cache as they call it in Hibernate). To make it work, you should configure cache provider tell hibernate what entities to cache (right in hbm.xml file if you use this kind of mapping). You tell to the cache provider how many objects it … Read more