Simple note: IntelliJ automatically generates Entity class from database

Some tables are strict unless they are automatically generated.

It's a really simple memo. I hope I can introduce it with an image someday.

How to do

  1. Select the Databse Tools menu.
  2. Select the database you want to automatically generate.
  3. Select the table you want to automatically generate.
  4. Right click.
  5. Select Scripted Extension.
  6. Select Gerated POJOs.groovy.
  7. Select the directory where you want to generate the java file.

Note

It doesn't add annotations. serialisable is not implemented. Getter and Setter are generated. I haven't studied enough, so I'm still researching various things.

Recommended Posts

Simple note: IntelliJ automatically generates Entity class from database
I made a source that automatically generates JPA Entity class files