Suppose a domain has an inheritance chain. For example, it could have a Fruit super class with possible subclasses being Apple and Banana. How could a corresponding DAO be formed ?
Suppose a domain has an inheritance chain. For example, it could have a Fruit
Share
According to the pattern – one per concrete class. In practice however, you should make a generic DAO and then subclass this DAO whenever you have specific queries.