type Exception report
message ids for this class must be manually assigned before calling save(): wys.zml.pojo.ArticleInfo
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): wys.zml.pojo.ArticleInfo
解决方法:将下面的将Hibernate反转生成的xxx.hbm.xml文件中的<generator class="assigned" />改为 <generator class="identity" />
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="assigned" />
</id>