DTO DSL

From OS.bee documentation
Revision as of 08:59, 4 August 2016 by Mollik (Talk | contribs) (Created page with "==Copyright Notice== ==Purpose== The '''DTO DSL''' facilitates the creation and handling of data transfer objects (DTOs) in order to carry data between processes. Communicat...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Copyright Notice

Purpose

The DTO DSL facilitates the creation and handling of data transfer objects (DTOs) in order to carry data between processes. Communication between processes is usually done by calls to remote interfaces and services where each call is a computationally expensive and time-consuming operation. The use of DTOs that aggregate the data that would have been transferred separately reduces the number of calls that are necessary, thus speeding up the operation. Furthermore, DTOs are decoupled from the JPA, thus eliminating burdensome dependencies.

Using the DTO DSL, it is easy to create DTOs and the mapper classes that link them to the respective persistence entities. Property change support is automatically included in order to have current data without direct dependencies on the persistence layer.