Data Access Object (DAO) Data Transfer Object (DTO). ------------------------------- DAO is a class that usually has operations like save, update, delete. Whereas the DTO is just an object that holds data. ------------------------------- The advantage of the DAO layer is that if you need to change the underlying persistence mechanism you only have to change the DAO layer, and not all the places in the domain logic where the DAO layer is used from. The advantage of DTO layer is that it adds a good deal of flexibility to the service layer and subsequently to the design of the entire application | 5 |
By: [email protected] On: Mon Apr 22 11:56:09 IST 2013 0 392 0 | 392 |
Are You Satisfied :7Yes2No |
DAO is a class that usually has the CRUD operations like save, update, delete. DTO is just an object that holds data. It is JavaBean with instance variables and setter and getters. The DTO is used to expose several values in a bean like fashion. This provides a light-weight mechanism to transfer values over a network or between different application tiers. DTO will be passed as value object to DAO layer and DAO layer will use this object to persist data using its CRUD operation methods. | 3 |
By: [email protected] On: Mon Apr 22 12:03:54 IST 2013 0 147 0 | 147 |
Are You Satisfied :4Yes3No |
kindly Elaborate it with an example | 0 |
By: [email protected] On: Mon Apr 22 12:09:34 IST 2013 6 0 0 | 6 |
Are You Satisfied :1Yes3No |
0 | |
By: [email protected] On: Tue Nov 27 15:32:58 IST 2018 0 0 0 | 0 |
Are You Satisfied :0Yes0No |