store « Cache « JPA Q&A





1. Rely on Hibernate cache, or store in session    forum.hibernate.org

Wondering what the recommended approach would be in a web application that constantly refers to data in a single table - like a user table. Should I: 1) Put the individual pieces of data into the container's (Tomcat) session and refer to them there. 2) Store the Hibernate ID - that references the proper Hibernate persistant class - in the Tomcat ...