Default value not working in hibernate

后端 未结 4 1829
囚心锁ツ
囚心锁ツ 2021-02-10 01:05

I have use columnDefinition to specify default value for a column, however it does not store default value it stores null only,

Please help regarding this,

4条回答
  •  逝去的感伤
    2021-02-10 01:33

    Make the default values in DB side. If you want to use it in entity mapping just set default value as below

    private String sourceFrom ="Case";

提交回复
热议问题