Hi Tricia,

I would add to Johannes' answer those advantages of DAOs (http://java.sun.com/blueprints/patterns/DAO.html) :

The Data Access Object (or DAO) pattern:

   * separates a data resource's client interface from its data access
     mechanisms

   * adapts a specific data resource's access API to a generic client
     interface

The DAO pattern allows data access mechanisms to change independently of the code that uses the data.


Simply put, you can change your ORM API or change your DB without changing the methods used by the client. Only the code of the DAOs will be changed.

-Baptiste

Tricia Williams a écrit :
   What is the advantage of using a DAO?

Tricia

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to