Best practice for DAO pattern ?
- by Tony
I've seen a lot of codes use a service-dao pattern , I don't know the origin of this pattern . It force the front layer call service , then delegates some of the service task to dao.
I want to ask :
Does DAO layer do purely data access related task ? What about exception encapsulation ?
Is there other pattern can be used to replace this ?