Hi people!
I have a system using
EJB + ZK framework (for presentation layer). The layers of the system are:
* presentation
* application - connects presentation with services
* services - EJBs
* domain - JPA entities
I would like to separate the data between services and application in order to do not have attached entities in application layer. I've read about Data Transfer Object design
pattern and some strategies. But I also realize and read that if my entities are always detached in application/presentation layers I'll solve my problem. How can I ensure that? What do you think about this approach?
Thanks a lot!