日志标签 ‘ssh整合开发’

SSH整合常见错误

2010年5月21日

1. org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): 原因:<id>元素配置不正确,<id>元素缺少其子元素<generator></generator>的配置。解决方法:<id>元素映射了相应数据库表的主键字段,对其子元素<generator class="">,其中class的取值可以为increment、identity、sequence、hilo、native……等,一般取其值为native 。

阅读全文——共4600字