Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on DAO

 
Durgaprasad Guduguntla
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For search implementation (read-only data), do we need to have a separate DAO for each DB table or can we have single DAO quering multiple tables and formulate appropriate transfer object. I see the petstore catalog implementation is using single DAO. What is the best practice?
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Durgaprasad,

It's up to you to decide.

Regards,
Dan
 
Andrew Zilahi
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keep maintainability in mind and the fact that you will have a few "nearly" independent subject areas in your database.

Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic