null id in com.bsw.gms.hibernate.pojo.Score entry (don't flush the Session after

null id in com.bsw.gms.hibernate.pojo.Score entry (dont flush the Session after an exception occur

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)错误,在网上查了些资料,但是还是不太清楚问题出现的原因以及如何解决,
希望高手可以指教一下!谢谢!

[解决办法]
我不会,但我会顶!
[解决办法]
score的xml文件里添加,可能是你的id是主键又没有付值,所以可以采用自动采翻
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="sequence"><param name="sequence">amount_unit_seq</param></generator>
</id>
[解决办法]
null id in com.bsw.gms.hibernate.pojo.Score entry (don't flush the Session after an exception occurs 
提示你的score实体没有id 产生异常

你可以把id配置为自动增长,id就会自动获取值了
[解决办法]
不是上面的问题,我以前也同样遇到过这种问题,原因就是数据连接池里连接不够用啦。你可以把这些连接数设大点就可以啦
[解决办法]
该异常信息是在提示我们没有为数据中的非空字段设置值!
>_< 接分!