ehcache « Entity « JPA Q&A





1. Hibernate with EHCache - Save on any non-cached entity it putting it in Cache    stackoverflow.com

I am trying to use 2nd level caching for Hibernate with EHCache. I have some entities configured in the application that I have tagged with @Cache and I see that they ...

2. EHCache doesn't always work for a certain entity    forum.hibernate.org

In one session, I have 3 loops and inside each loop is called 2 times a mthod containing a certain SQL Query on a certain entity (there is some other treatment, but the 2 calls are not separated by others SQL Queries). I expected that the 2nd call of the method should use the cache, not send the query to the ...