This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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.