Entity to DTO Usage
Been trying to come up with a flow for a basic tiered web application, and have been reading conflicting information online. What I’m trying to figure out is if there is an advantage to still using DTO objects from your DAO to Service layer through the use of some sort of mapper.
Creating a separate project for JPA entities
Where I work it is a common practice to create a separate for JPA entities and a project for the web application (the WAR). So basically you have (at least) two project for each application – appJPA and appWEB.
ORM: Design of the service layer
I’m currently writing a medium sized web-application and find myself asking this question many times.
Java JPA: Transaction logic in DAO vs Service
Being new to JPA and transaction management, I have a Spring Boot REST API application layered like this:
Criteria API: Subquery and Join
I got three entities:
Where to put JPA annotations? Field, or getter?
version in field:
Where to put JPA annotations? Field, or getter?
version in field:
Where to put JPA annotations? Field, or getter?
version in field:
Where to put JPA annotations? Field, or getter?
version in field:
Producing JSON objects from JPA entities in REST API
I have a REST service producing JSON and consuming JSON.