使用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>

浙公网安备 33010602011771号