Value Object / Data Access Object

Discussions

EJB design: Value Object / Data Access Object

  1. Value Object / Data Access Object (5 messages)

    Is Value Object Pattern and Data Access Object Pattern same or there are any differences

    Thanks,
    aakash

    Threaded Messages (5)

  2. DTO /V/O[ Go to top ]

    They both are one and the same
  3. DTO /V/O[ Go to top ]

    I believe you means that Data transfer objects and Value objects are the same, but the original question was if the Value Object and Data Access Object are the same. I believe they are not. DAO is is used for the access to a persistent data store, and can use DTO/VO for transferring the data to the application.
  4. Value Object / Data Access Object[ Go to top ]

    They are definitely not the same.
    Value object is just a representation of data..it is same as a normal class with just getter methods inside it.
    Data Access Objects are used to deal with database. You use Value Objects in Data Access Objects in order to represent the data which you have fetched from database.
  5. DAO examples (open source)[ Go to top ]

    http://daoexamples.sourceforge.net/
  6. Value Object / Data Access Object[ Go to top ]

    Aakash:

    Did you mean to say Data Transfer Object rather than Data Access Object?

    It is DTO's that are somewhat similar to Value Objects. We had a discussion on this recently:

    https://www.theserverside.com/discussion/thread.jsp?thread_id=20973