CacheMode « Cache « JPA Q&A





1. CacheMode.GET    forum.hibernate.org

Hello, I seem to misunderstand the purpose of this setting of the CacheMode. Every x minutes, I'm running a query to retrieve objects that may have changed outside of my session/application. These objects have relationships with other objects which are read-only. So basically I load all my read-only objects once with CacheMode.NORMAL and then I retrieve the other objects with CacheMode.GET. ...