[JAVA] 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
- Select the Databse Tools menu.
- Select the database you want to automatically generate.
- Select the table you want to automatically generate.
- Right click.
- Select Scripted Extension.
- Select Gerated POJOs.groovy.
- 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.