Best practice for DAO pattern ?

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-03-18T09:14:16Z Indexed on 2010/03/18 9:31 UTC
Read the original article Hit count: 357

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 :

  1. Does DAO layer do purely data access related task ? What about exception encapsulation ?
  2. Is there other pattern can be used to replace this ?

© Stack Overflow or respective owner

Related posts about design-patterns

Related posts about java