session « DAO « JPA Q&A





1. Is that a good approch to manage hibernate session?    stackoverflow.com


I am looking for a good way to manage hibernate session across web application. My problem is that i dont want to allow session access in the view or API layer. so i ...

2. DAO v.s. abstracting long sessions    forum.hibernate.org

Hi, DAOs abstract client code from making (Hibernate) specific data access calls. For long sessions, however, it looks like there is no abstraction from storing the Hibernate session in e.g. the Web session context. Assuming a requirement for supoprting different persistence frameworks, wouldn't it make sense to add such an abstraction level too ? I am thinking of: - Hibernate Util ...

3. Session per Conversation DAO Pattern    forum.hibernate.org

Hibernate version: 3.2 I am trying to make an application that loads an Object using standard HQL. Then it will go through a process of modifing the object, and finally save the object back into the database. My problem is that I need to have a large amount of data accessed from the database right at the beging of the application, ...

4. The CONTINUED session per DAO-retrieval pattern?    forum.hibernate.org

Let's say you still want to really abstract hibernate behind a DAO layer and not allow any db-writing from lower layers. But you really don't feel like writing all the DTO's or the code to assemble them. Couldn't this be done in some soft fashion as follows: Each DAO method that returns an entity, does this by opening a new session ...