These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Patterns Question: Are DAOs / class optimal?
PostPosted: Wed Jan 26, 2005 11:50 am 
Beginner
Beginner

Joined: Wed Dec 03, 2003 2:43 pm
Posts: 22
This is a theoretical question rather than a question of use with Hibernate.

In "normal" coding, you might have a DAO with methods for a Product class, say such as getById, getByCategory etc etc.

Since tools such as Hibernate allow you to pass the class and a criteria query for example would allow you to pass a property or properties to query on, is it a good idea to have a DAO layer (one DAO / class) or rather develop a DAO layer that simply abstracts away from the Hibernate layer and is implemented similar to Criteria queries where class names and properties are passed rather than creating a DAO per class and a method per property query.

Gabe


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.