RE: MVC + ORM

2006-02-10 Thread Tom Ansley
Hi Marcio, I use Hibernate with Struts and the way I ensure that the session does not get closed is by using a filter. This filter opens up and closes a session at the beginning and end of each request. Then, if I need to use those objects again I associate them with the session and carry on. T

Re: MVC + ORM

2006-02-10 Thread Srini Pillai
You could use servlet filters to have the hibernate session open until the request is processed. There are articles in the www.hibernate.org that explains different patterns to handle situations similar to yours... Hibernate session needs to be open in order for the objects to load the collectio