wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes DAO vs DTO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "DAO vs DTO" Watch "DAO vs DTO" New topic
Author

DAO vs DTO

Sandipan Mukherjee
Greenhorn

Joined: Dec 07, 2006
Posts: 8
what is DTO or value objects?
what is the difference between DTO and DAO?please explain in detail.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Sandipan Mukherjee
Greenhorn

Joined: Dec 07, 2006
Posts: 8
would you please explain in detail
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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

Joined: Dec 07, 2006
Posts: 8
ok,thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DAO vs DTO
 
Similar Threads
Print ResultSet data on JSP
why we will use design patterns
DAO and DTO
Session Bean + DAO
Diff b/w Dao's and valueobjectpattern?