How are DAOs usually designed for the typical business application ? Does one class or pattern dialogue with the data source or do you simply have a separate DAO for each Entity ?
How are DAOs usually designed for the typical business application ? Does one class
Share
I recommend reading Fowler’s Patterns of Enterprise Application Architecture. For example, you can use a Table Data Gateway, Row Data Gateway, Active Record, or Data Mapper.
Most projects out there are using an ORM like Hibernate or IBatis, which adapt to the domain model as opposed to using transaction scripts.