Jukien / POJO-Generator

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

Home Page:https://plugins.jetbrains.com/plugin/12297-pojo-generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

 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

https://plugins.jetbrains.com/plugin/12297-pojo-generator

License:MIT License


Languages

Language:Java 100.0%