Java异常
cuixf20
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hibernate字段冲突
Could not execute JDBC batch update 无法执行的JDBC批量更新 我程序中的这个异常是表中字段与MySQL关键词冲突造成的,因为我用的的jpa实体类只需要在属性中的@Column(name="status") 中加上返单引号就行了,如图:原创 2014-07-02 11:22:22 · 477 阅读 · 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 · 369 阅读 · 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 · 504 阅读 · 0 评论
分享