Hello, I am trying to get the second-level cache to work. I log the summary of stats and I noticed that I always get ZERO second-level cache puts and hits whereas the query-cache gets puts and hits. Is that normal. Can anyone help me understand what's going on?? Thanks in advance, Julien Martin.
Here is the relevant snippet from my persitence.xml:
It looks to me like some values were being loaded into the second level cache. Why would you need to change your persistence.xml. The second level cache is not part of the JPA spec, so nothing would be defined in the spec defined persistence.xml.
Second Level caching here is a Hibernate specific thing, hence the Hibernate annotation instead.