Popular IntelliJ IDEA plugin focused on effective use of JPA and surrounding frameworks: Hibernate, Spring Data JPA, Flyway, Liquibase, MapStruct, ModelMapper, etc.
Questions tagged [jpa-buddy]
13 questions
7
votes
2 answers
Why JPA Buddy complains about @Data annotation over JPA Entity?
I discovered JPA Buddy plugin for IntelliJ IDEA. In all my projects i love to use Lombok. It saves a lot of space in my entity classes. However, i just noticed, that JPA Buddy highliths it and suggest to replace.
E.g.:
As a result, the @Data…

Georgii Vlasov
- 192
- 9
3
votes
1 answer
How to get table and columns comment in JPA Buddy revers engendering
I just bougth JPA Buddy plugin for Intellij Idea. It doesn't copy table and column comments into generated Entity from DB. In my case I use Postgres. I know that such posibility exists in Jboss tools revers engendering.…

Vladimir Surkov
- 73
- 4
3
votes
1 answer
The JPA Buddy Reverse Engineering tool is not showing tables
When I click from "Entities from DB" it correctly connects to DB, and it succesfully performs the introspection, so that I can see the list of tables from the side view. But within the popup I get 0 tables, 0 views and 0 mapped relations
0tables
I…

Carlo
- 21
- 3
2
votes
1 answer
jpa-buddy generates ddl schema with not all unique constraints
I have this entity:
@Getter
@Setter
@Entity
@Table(name = "publications")
public class Publication {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "publication_id")
private Long id;
@NotBlank
…

David Blbulyan
- 35
- 4
1
vote
0 answers
JPABuddy Liquibase Init generation of MySQL uses utf8mb3 for nvarchar?
I uses JPABuddy to generate an init Liquibase db for MySQL 8.0.33 DB. I notices that for nvarchar datatype it uses character set utf8mb3, collation utf8mb3_general_ci which are deprecated, instead MySQL recommend to use utf8mb4.
This is the…

vunhatchuong
- 31
- 5
1
vote
1 answer
How to use `@CollectionTable` with JPA Buddy
I try to generate a Liquibase init Changelog with JPA Buddy.
Somehow, JPA Buddy is ignoring tables declared with @CollectionTable. Is it a feature that JPA Buddy does not cover?
Here is my definition:
@ElementCollection(targetClass =…

Charles
- 11,367
- 10
- 77
- 114
1
vote
1 answer
How to generate SDO_GEOMETRY for geolatte Geometry with JPA Buddy
I am using JPA Buddy to generate Liquibase changelog from a JPA-annotated Entity in Kotlin.
My model looks something like this:
@Entity
class MyEntity(
@Id
val id: Long,
val someField: String,
@Type(JsonBlobType::class)
val someStruct:…

Geir Sagberg
- 9,632
- 8
- 45
- 60
1
vote
1 answer
@Lob annotation JPA Buddy creates a script with the attribute of type TEXT
I encountered a bug when creating an init script from the java classes for flyway with a postgresql database. If you have an attribute of type string with the @Lob annotation jpa buddy creates a script with the attribute of type TEXT. Hibernate…

Georgii Vlasov
- 192
- 9
1
vote
1 answer
Id attribute is null for entity JPA Buddy
I have the following entities:
@Entity
@Table(name = "Work_Order")
public class WorkOrder {
@Id
@GeneratedValue
private long id;
@ManyToOne
@JoinColumn(name = "transaction_group_id")
private TransactionGroup…

Kevin
- 13
- 3
1
vote
2 answers
JPA Buddy missing from Tool Window in Intellij
After latest update of IntelliJ, JPA Buddy missing from right title bar which usually placed under Maven section.

john triantafillakis
- 79
- 1
- 2
- 8
1
vote
1 answer
How can I auto create the associative (or junction) table in many-to-many relationship using JPA Buddy
I am using the JPA Buddy plugin in IntelliJ, and I want to quickly create sql script (MySQL) from the entity class of Student and Course (many-to-many relationship).
I have successfully created the course and student table, but look like JPA Buddy…

Steven
- 86
- 8
0
votes
1 answer
Mapstruct in Spring Boot Sets all fields to null
I have Spring Boot application (v3.0.2, Java 17), and in it, a simple entity ActivityType and corresponding ActivityDto.
//Entity (uses Lombok 1.18.24)...
@Getter
@Setter
@Entity
public class ActivityType {
@Id
…

Vicki
- 668
- 7
- 21
-1
votes
1 answer
It takes more than 10 minutes to generate entities from database in IntelliJ IDEA. How can I improve the speed?
I am using IntelliJ IDEA and JPA Buddy to generate entities from my database. However, every time I open an Entity from DB wizard, it takes a very very long time. Is it okay? Or something wrong with my database/IntelliJ IDEA or JPA Buddy?
My setup…

Георгий Таптыгин
- 11
- 1