把Xxx.hbm.xml主键生成策略改成identity
相关文章
- hibernate save数据的时候报错:ids for this class must be manually assigned before calling save()
- Hibernate: ids for this class must be manually assigned before calling save():
- org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save()
- Caused by: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): com.qingmu.seller.entity.OrderMaster
- ids for this class must be manually assigned before calling save():
- ids for this class must be manually assigned before calling save():Xxx
- 错误/异常:org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save() 的解决方法