1
私は、hibernate antツールを使用して、アノテーション付きのhibernate pojoクラスを生成しました。 ANT SCRIPTを使用して既存のテーブルからPOJOクラスの生成戦略を教えてください。HibernateのAntツール
私は答えを見つけ出し、投稿しています。
私は、hibernate antツールを使用して、アノテーション付きのhibernate pojoクラスを生成しました。 ANT SCRIPTを使用して既存のテーブルからPOJOクラスの生成戦略を教えてください。HibernateのAntツール
私は答えを見つけ出し、投稿しています。
If table column is having not null constraint,
then a property related to that column in generated class will be of primitive type.
If table column is not having not null constraint,
then a property related to that column in generated class will be of java.lang.X type.
(X == any of Integer,Byte,Float,Double depends on table column type in database)
If table column is having primary key constraint,
then a property related to that column in generated class will be of primitive type.
If table column is having primary key constraint and it is AUTO INCREAMENT OR foreign key,
then a property related to that column in generated class will be of java.lang.X type.
(X == any of Integer,Byte,Float,Double depends on table column type in database)