Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCL Data Service should implement native Entities #358

Closed
pascalwilbrink opened this issue Oct 11, 2023 · 0 comments
Closed

SCL Data Service should implement native Entities #358

pascalwilbrink opened this issue Oct 11, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@pascalwilbrink
Copy link
Member

If we want to migrate to Native Repositories, we need to support native Entities.
This means that the repository package will contain interfaces of the Entities.
The [DB]-repository package should contain a mapper that maps/transforms DTO's into implemented Entities.

For example:

App > Service > Repository

The App layer has a dependency on the Service layer.
The Service layer has a dependency on an implemented Data layer (Repository).

The app communicates in DTO's ( towards the UI and Service ). The service Maps a DTO from the App into an Entity via the injected Mapper (from the repository). This entity will be passed down to the repository.

Once an Entity comes back from the repository, it should be mapped in the service to a DTO.
The service returns the DTO to the App

@pascalwilbrink pascalwilbrink added the enhancement New feature or request label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants