aspose file tools
The moose likes Object Relational Mapping and the fly likes DTO Assembler pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "DTO Assembler pattern " Watch "DTO Assembler pattern " New topic
Author

DTO Assembler pattern

Miguel Cardenete
Greenhorn

Joined: May 31, 2011
Posts: 5
I'm using the DTO Assembler pattern in my project to copy data from DTO to hibernate entities and vice versa.
When I copy values no problem. The problem arises when I have to establish relations based on the ID (from FKs) that represent
relationships within the DTO. This makes the DTOAssembler methods have to be transactionals and that also have to inject
DAOs within DTO Assembler,is it a good practice?. The other option would be to copy only primitive values
within the DTO Assembler and establish relationships within the Services, there are transactional and use DAOs.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: DTO Assembler pattern
 
Similar Threads
DTO Assembler pattern methods
DTO Assembler pattern methods
To Chris Richardson: Eliminating DTOs
DTO/VO or a Universal Map
Relationship between tables in DAO pattern