null id in com.bsw.gms.hibernate.pojo.Score entry (don't flush the Session after an exception occurs
做了一个教师评分系统,struts+hibernate,当少数几个学生同时对教师评分时不会出现任何问题,
但是当很多学生同时对教师进行评分时就会出现null id in com.bsw.gms.hibernate.pojo.Score entry (don't flush the Session after an exception occurs)错误,在网上查了些资料,但是还是不太清楚问题出现的原因以及如何解决,
希望高手可以指教一下!谢谢!
但是当很多学生同时对教师进行评分时就会出现null id in com.bsw.gms.hibernate.pojo.Score entry (don't flush the Session after an exception occurs)错误,在网上查了些资料,但是还是不太清楚问题出现的原因以及如何解决,
希望高手可以指教一下!谢谢!
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="sequence"><param name="sequence">amount_unit_seq</param></generator>
</id>
提示你的score实体没有id 产生异常你可以把id配置为自动增长,id就会自动获取值了
>_< 接分!
七月 14, 2012 4:51:25 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet default threw exception
org.hibernate.AssertionFailure: null id in order.entity.XSOrderEntry entry (don't flush the Session after an exception occurs)