A Data Access Object abstracts and encapsulates logic needed to access a given data source, such as a relational database, and performs these data access operation on behalf of a business object. See CoreJ2EE Patterns - Data Access Object for more details.
A (Data) Transfer Object is basically a (serializable) data container that encapsulates the (partial) state of a business object. So, a DAO may use a DTO to transfer the persistent state of a business object to and from a particular data source. See CoreJ2EE Patterns - Transfer Object for more details.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
With other words, the only thing they have in common is that they both have the words "Data" and "Object" in their name.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Jun 22, 2005
Thanks everyone. Jelle, is that complete book online or its just a catalog?