How to use generic MapStruct mapper in jHipster projects with JPA Buddy

Опубликовано: 28 Сентябрь 2024
на канале: JPA Buddy
1,296
16

#jpa #hibernate #jhipster #intellijidea #java #kotlin #jpabuddy #mapstruct

With MapStruct, we can save time on Entity to DTO and back conversion and eliminate boilerplate code. Even more, if we declare generic EntityMapper (as jHipster does), we can define mappers in one line of code! JPA Buddy supports jHipster way for mappers declaration.

JPA Buddy: 2022.5.0
IntelliJ IDEA: 2022.3.0

JPA Buddy is an IntelliJ IDEA plugin that helps developers work efficiently with Hibernate, EclipseLink, Spring Data JPA, Flyway, Liquibase, Lombok, MapStruct, and other related technologies in both Java and Kotlin.

The plugin is intended to:
– Lower barrier to entry into development with JPA
– Boost developer’s productivity
– Make sure your code follows best practices

JPA Buddy delivers:
– Intuitive wizards to work with JPA
– Automatic database versioning changelog generation
– Smart inspections to make the code better
– JPA Entities generation based on tables (reverse engineering)
– Visual DTO designer and mapper code generator

You can use JPA Buddy in any project with Spring Boot, Jakarta Enterprise Edition, Quarkus, Micronaut, or even without any framework.

Download IntelliJ IDEA: https://jb.gg/5r06j0

Join us:
Website: https://jb.gg/website
Blog: https://jb.gg/blog
Twitter:   / intellijidea  
Facebook:   / intellijidea  
YouTube:    / @intellijidea