• 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!