LoginSignup
5
6

More than 5 years have passed since last update.

簡易メモ:IntelliJでデータベースからEntityクラスを自動生成

Posted at

自動生成しないと厳しいTableもある。

本当に簡易メモです。
いつか画像つきでご紹介できればします。

やりかた

  1. Databseのツールメニューを選ぶ。
  2. 自動生成したいデータベースを選択する。
  3. 自動生成したいテーブルを選択する。
  4. 右クリックする。
  5. Scripted Extensionを選択。
  6. Gerated POJOs.groovyを選択。
  7. javaファイルを生成したいディレクトリーを選択。

メモ

アノテーションとかはつけてくれない。
serialisableは実装していない。
GetterとSetterは生成してくれている。
勉強が足りていないのでまだまだいろいろ調べている最中です。

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6