Tight Coupling DAO with DTO
843810Feb 28 2004 — edited Mar 1 2004Hello All,
I need to ask a question about the DAO design pattern, does its CRUD methods have to be passed/return DTOs that encapsulates the domain data OR this data can exist as instance veraiable in the DAO class, and the client (session bean for example) can call the fine-grained set/get methods on the DAO.
I'm worried about tight coupling my DAOs with DTO as the DTOs will be custom/use case specific DTOs that don't necssary map to the domain DTOs.
Thanks