-->
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: passing parameters to Hibernate DAO
PostPosted: Sat Aug 30, 2008 8:57 am 
Newbie

Joined: Tue Jan 31, 2006 8:00 am
Posts: 14
Hi All,

I would like to know your opinion on this.
I have Hibernate DAO classes. Each class has methods which will comprise of lot many input parameters.
These parameters are nothing but arguments which will be used in Criteria object or HQL.
My question is should we keep our methods verbose and have separate params. This way the method signature looks long when there are over 5 params to pass.
We were thinking of creating custom classes for encapsulating such input parameters so our method signature would hold only have instance of this class as an input param.

Let me know your thoughts on the same


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.