使用hibernate生成UUID主键时报,java.sql.SQLException: Field 'application_id' doesn't have a default value

<id name="application_id">
<generator class="native"></generator>
</id>

改为

<id name="application_id">
<generator class="uuid"></generator>
</id>

posted @ 2018-04-02 13:59  大笨钟  阅读(489)  评论(0)    收藏  举报