Generate or synchronize JPA/Hibernate entities from existing DB tables in IntelliJ IDEA | JPA Buddy

preview_player
Показать описание
#jpa #hibernate #eclipselink #intellijidea #java #kotlin #jpabuddy #database #reverseengineereing

If you prefer to design a database first and then code JPA entities to map the tables or if you develop an application over an already existing database, this feature will be extremely handy for you and save a lot of time from routine work! Using the Entities from DB action you will be able to convert selected DB tables and their attributes into JPA entities in a few clicks, including constraints, indexes, column properties, etc. It also supports mappings for ManyToOne, OneToOne, OneToMany and ManyToMany associations. The best part of it is that it doesn't regenerate the whole entity, but adds new fields into the existing entity declaration.

00:00 – Introduction
01:00 – Application overview
01:22 – Establishing DB connection
01:44 – Creating database
02:14 – Generating Entities from DB tables
03:53 – Make some changes in the DB
04:09 – Generating attributes into the exiting entity from table columns
04:55 – Creating @Immutable entity from DB view
06:22 – Thank you!

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.

Join us:
Рекомендации по теме
Комментарии
Автор

Is this hibernate reverse engineering?

runitupquickly
Автор

Not Working... when I select > New > JPA Entities from DB, the next error is thrown: Collection contains no element matching the predicate. Stack trace:
Collection contains no element matching the predicate.
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at
at

FerneyderCubidesSuarez