RE: MVC + ORM

2006-02-10 Thread Tom Ansley
probably find an example of this at the hibernate website. Cheers Tom -Original Message- From: Marcio Ghiraldelli [mailto:[EMAIL PROTECTED] Sent: Friday, February 10, 2006 9:23 AM To: user@struts.apache.org Subject: MVC + ORM I´m using Struts 1.2.8 with Hibernate 3.0.5 and I´m doubt wit

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

MVC + ORM

2006-02-10 Thread Marcio Ghiraldelli
I´m using Struts 1.2.8 with Hibernate 3.0.5 and I´m doubt with some concept designs for ORM with MVC: A Hibernate session get's instantiated in my DAO constructor (Model). Later on, the JSP (View) catches the Hibernate persisted objects populated in the request or session by the Control