IntelliJ IDEA
 
Get IntelliJ IDEA

Coding Assistance

Last modified: 14 March 2024

JPA represents the anemic domain model pattern. So, usually, the main domain objects are layered as follows:

  1. Entities contain only data

  2. Spring Data repositories declare CRUD operations for entities

  3. DTOs and mappers that transfer entities to their DTOs

Such segregation looks natural because each layer has its clear responsibility area. However, it brings additional complexity during development due to bad discoverability for different operations available over entities.

JPA Buddy addresses this problem by integrating a lot of coding assistance features for JPA entities, Spring Data repositories, DTOs and MapStruct mappers that make development more straightforward and transparent.