![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java异常
cuixf20
这个作者很懒,什么都没留下…
展开
-
hibernate字段冲突
Could not execute JDBC batch update无法执行的JDBC批量更新我程序中的这个异常是表中字段与MySQL关键词冲突造成的,因为我用的的jpa实体类只需要在属性中的@Column(name="status")中加上返单引号就行了,如图:原创 2014-07-02 11:22:22 · 415 阅读 · 1 评论 -
a different object with the same identifier value was already associated with the session
a different object with the same identifier value was already associated with the session。 错误原因:在hibernate中同一个session里面有了两个相同标识但是是不同实体。原创 2014-08-06 11:31:47 · 311 阅读 · 0 评论 -
jdk1.6不支持Integer类型的‘==’
jdk1.6不支持Integer类型的‘==’比较如:Integer a = new Integer(1);Integer b = new Integer(1);a==b 返回 false;(1.7版本的可以)此时需转换为int值再做比较a..intValue() == b.intValue();返回true,其实1.7以后版本的底层也是通过intValue()方法进原创 2015-01-09 17:00:49 · 447 阅读 · 0 评论