Hi There,
I'm starting a new project using Webwork as MVC framework and I want to use Hibernate as persistence framework.
My question is about the best practice to implement the DAO. My first idea is create a DAO class that have the SessionFactory static and anothers classes to implements the methods such as Save, Update, Delete and Load. Now, I don't know if is good to implements this methods in the Action class from Webwork or use a different class to do it. For instance, I have a CustomerAction (Action which will called by webwork), I must implements the hibernate methods within this class or create another class for instance CustomerDAO?
Thanks for idea.
Junior
Hibernate version: 2.1.4
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
Debug level Hibernate log excerpt:
|