Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DAO vs DTO

 
Sandipan Mukherjee
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is DTO or value objects?
what is the difference between DTO and DAO?please explain in detail.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DTO == Data Transfer Object, i.e. a class that encapsulates the properties of a particular object (Value Objects are just another name for the same thing).

DAO == Data Access Object, i.e. a class that encapsulates access to data.

Make sense?
 
Sandipan Mukherjee
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
would you please explain in detail
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, rather than I write a long answer explaining these (since there are countless resources on the internet that already do this - have a google to find them), why don't you explain what it is about them that you don't understand? If that is just a basic "what are they?" question I'd recommend searching the internet first.
 
Sandipan Mukherjee
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok,thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic