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

Facade and Service layers #18

Open
6 tasks
mpiatka opened this issue Nov 21, 2018 · 0 comments
Open
6 tasks

Facade and Service layers #18

mpiatka opened this issue Nov 21, 2018 · 0 comments
Milestone

Comments

@mpiatka
Copy link
Collaborator

mpiatka commented Nov 21, 2018

  • All the classes must be wired via dependency injection. Your service objects should obtain an instance of the EntityManager that way;

  • All the facade interfaces must not reference entities, but Transfer Objects only;

  • All service interfaces must reference only entities, not Data Transfer Objects;
    You can use Dozer framework to map entity instances to transfer objects. The mapping may be done on Facade Layer;

  • Facade layer is used to drive transactions;

  • Facade layer will use Service layer and Service layer will use DAO layer;

  • Make sure that DataAccessException or its subclass is thrown in case of any exception on a the DAO layer;

@mpiatka mpiatka added this to the Milestone 2 milestone Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant