vanholy wrote:
OOh thank you for response, i was certainly nobody respopnse and my credit fly away :))
Howerver your suggestion is very nice and looks better than mine, i will adopt.
For you using boolean for decide if the DAO operations are ok is a good choice or it is better to use excetion with void method?
bye
ps: if anybodyelse has some comments on patern do not hesistate write it about ;)
I definitely think you're better off using exceptions.
The wiki section of the Hibernate main site has many patters that you should look at. A good pattern to look at for use within web applications is OpenSessionInView -
http://www.hibernate.org/43.html.
Read the comments for specific suggestions regarding Struts.