com-pas / compas-scl-data-service

Service to store and retrieve the SCL XML to a database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SCL Data Service should support DTO's

pascalwilbrink opened this issue · comments

In order to make the implementation better to maintain; The idea is to replace existing custom code by standard implementation. In order to do so; the DTO is concept is needed to prevent errors.

If we want to migrate to native Repositories (like has been done in Sitipe), we need to support DTO's (Data Transfer Objects).

App > Service > Repository
DTO > DTO/Entity translation > Entity

The Input and Output of the Service package should be DTO's.
The translation from/to a DTO should be in the Service.

Can this be closed @pascalwilbrink ?