
Barriers
softimes
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
svn cannot map the project with svn provider解决办法
昨天晚上走的时候有些急,强制关机的。今天早上MyEclipse 8.5 出现问题。于是删除.metadata。其实这是一个手误。但是由于平时习惯原因,Shift+Delete已经按下了。无奈只得重新配置SVN。在Down项目的时候,SVN报错了。错误信息是 svn cannot map the project with svn providerOK.解决办法:删掉 \.metadat原创 2011-11-16 10:09:16 · 2766 阅读 · 0 评论 -
收集:Hibernate中常见问题 No row with the given identifier exists问题的原因及解决
Hibernate中No row with the given identifier exists问题的原因及解决 产生此问题的原因: 有两张表,table1和table2.产生此问题的原因就是table1里做了关联或者(特殊的多对一映射,实际就是一对一)来关联table2.当hibernate查找的时候,table2里的数据没有与ta转载 2011-11-24 14:07:40 · 685 阅读 · 0 评论 -
ids for this class must be manually assigned before calling save()..
org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save():引起问题的原因:由Hibernate根据数据库表自动生成的"类名.hbm.xml"映射文件引起的。首先我的表(Info)由两个字段组成,即:原创 2011-11-24 17:06:55 · 71998 阅读 · 4 评论 -
attempt to create delete event with null entity解决办法
attempt to create delete event with null entity这样的一个问题也折腾了半天。症状:报错,但是可以成功删除。解决办法:删除之前,先判断要删除的对象是否为空。Eg:if(Object != null){ session.delete(Object);}原创 2011-11-26 17:41:11 · 34836 阅读 · 6 评论 -
org.hibernate.MappingException: Unknown entity: java.lang.Class解决办法
出现这个问题,十之八九,是在save或者delete时,将 非对象 传给了save或者delete。一定要搞清楚Hibernate需要什么样的参数。原创 2011-11-26 17:48:02 · 8464 阅读 · 0 评论