Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
2
Quick question I wonder if anyone could give me some idea's or point me to resource that talk about how to create wizard style servlets in hibernate. I currently have a wizard servlet implementation but this is what I do.
When servlet implementing wizard servlet calls startWizard() method I open a new hibernate session and store it in HttpSession. Servlet can then perforrm different and many other steps while saving objects to the hibernate session stored in session. After implementing session is done with wizard it calls a completeWizard() method which will then get the session stored in HttpSession and flush all changes.
This seems to work fine so far but am wondering if there is an elegant way of doing this. Thanks for all the help.