Java EE之Hibernate异常总结【2】Field 'id' doesn't have a default value时间:2021-07-23 15:28:11Field 'id' doesn't have a default value问题解决方法 因为assigned是指主键是由人工分配的,而native则指主键值由库自动给出。 <generator class="assigned"/>