Skip to content

Plugin for JetBrains IntelliJ IDEA Ultimate. Generate JPA Entity POJO from database table

License

Notifications You must be signed in to change notification settings

adarshahd/POJO-Generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 POJO Generator

Generate JPA Entity POJO from database table

Usage

Right click POJO Generator Entity

  1. Right click on the table for generate a JPA Entity POJO or a Data Transfert Object POJO
  2. Choose the path where to store the java file
  3. The Java class is generated

User entity

Example of the User DTO class:

User DTO

Options

Settings

  1. You can capitalize table name and column name in annotation
  2. You can add @GeneratedValue annotation over column which have auto increment sequence (H2, Microsoft SQL Server, MySQL and PostgreSQL)
  3. You can add @ManyToOne and @JoinColumn annotations on columns with foreign key
  4. You can generate composite primary key with @IdClass or @EmbeddedId annotations

JPA Mapping

JPA Mapping

You can change the JPA mapping and add new ones

About

Plugin for JetBrains IntelliJ IDEA Ultimate. Generate JPA Entity POJO from database table

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%