Senior |
|
Joined: Wed Mar 24, 2004 11:40 am Posts: 146 Location: Indianapolis, IN, USA
|
I had this same issue a while back when I started working on my current application. After debating a lot, I decided to go with the model of a DAO per persistent class. I created a DAOInterface and defined all the possible methods (searchByPrimaryKey(), search(), add() - covers saveOrUpdate, delete(), addMultiple(), deleteMultiple() etc...).
The biggest advantage I have seen from this approach is the ease of use and the standard templating that you can do to rapidly write new DAOs. Other developers who weren't initially involved with the project have said that they find it much easier to understand this structure as well. Hope that helps.
|
|