- Request DTO
- map the data coming from the client to request dto
- controller layer takes the responsibility to do the mapping
- Response DTO
- map the data coming from the db/repository to request dto
- service layer takes the responsibility to do the mapping
Anything common across any layers
- Entity are classes that are direct representation of our tables
- Used by repository mostly
- application.properties to define fixed values
- contains all the apis that client interacts with
- contains business logic which interacts with Repository Layer to giver response back to Controller Layer
- Interacts with DB and gives response back to Service Layer