lundi 30 mai 2022

Design pattern for Java Spring data JPA projects [closed]

This is my current project design
Controller-> service -> Repository

Service layer contains the business logic, Repository contains SQL Native query. Now i am trying to understand which one layer i can add between service and repository for manipulation of data which I am getting from DB.

I am trying to understand :

  1. What layer(Name) i can create between Controller-> service if in case i need to have layer which can be composition of services.

  2. What layer I can create between service -> Repository .

  3. If i am having Repository Layer can i also keep DAO layer.

Many Thanks.

Aucun commentaire:

Enregistrer un commentaire