0

I am assigned a project in java where the patron DTO is used, but I consulted it that is (dto) disused how evil are data transfer objects or is Is DTO pattern deprecated or not?

exist another pattern that you will recommend?

I come from Entity Frame-w and c# world where exist repository and unit of work pattern

Note: I have to use JAx RS web service...

Community
  • 1
  • 1
ger
  • 414
  • 1
  • 4
  • 22

1 Answers1

0

I'm going to point a concept (not sure it'll solve your case) - RemoteFacade is a good optional fit for the Persistence layer. Remote Facade In an object-oriented model, you do best with small objects that have small methods. This gives you lots of opportunity for control and substitution of behavior, and to use good intention revealing naming to make an application easier to understand. One of the consequences of such fine-grained behavior is that there's usually a great deal of interaction between objects, and that interac-tion usually requires lots of method invocations.

ekostadinov
  • 6,880
  • 3
  • 29
  • 47