Thread:
 Good approach 
 orlando   07 Aug 2005, 12:01 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: orlando (07 Aug 2005, 12:01) Replies: 0, Views: 35728
Subject: Good approach
It's a good approach to have a root class with hibernate "stuff" on it,
but i rather use DAO. The benefit of the DAO pattern is that nothing on
the business layer knows about Hibernate. The disadvantege of the DAO is
that you have to write lot of classes (generally 1 business class, 1 DAO
class). 

Both approaches are good (root class, and DAO), it just depend on the
project and what you like.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]