Chinaunix首页 | 论坛 | 博客
  • 博客访问: 101737
  • 博文数量: 60
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 280
  • 用 户 组: 普通用户
  • 注册时间: 2013-09-09 12:19
文章分类

全部博文(60)

文章存档

2015年(3)

2014年(41)

2013年(16)

我的朋友

发布时间:2014-04-19 23:53:46

配置映射:1.courseinfo类:package com.xiyou.dao.po;import java.io.Serializable;import java.util.HashSet;import java.util.Set;import javax.persistence.CascadeType;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.FetchType;import javax.persistence.........【阅读全文】

阅读(931) | 评论(0) | 转发(0)

发布时间:2014-04-19 23:44:39

 Hibernate:More than one row with the given identifier was found解决办法今天写一个Action 通过 HQL 查询一个表 出现异常 “More than one row with the given identifier was found”问题原因: 数据库出现数据异常 存在多条主键不唯一的数据 (看来ORACLE也会出BUG呀)问题解.........【阅读全文】

阅读(291) | 评论(0) | 转发(0)

发布时间:2014-04-19 23:17:35

Error Code : 1205Lock wait timeout exceeded; try restarting transaction(0 ms taken)原因是你使用的InnoDB   表类型的时候,默认参数:innodb_lock_wait_timeout设置锁等待的时间是50s,因为有的锁等待超过了这个时间,所以抱错.你可以把这个时间加长,或者优化存储过程,事务避免过长时间的等.........【阅读全文】

阅读(550) | 评论(0) | 转发(0)

发布时间:2014-04-15 16:26:58

Hibernate、Hibernate4获取SessionFactory对象方法的变化Hibernate用来获取配置文件的类是Configuration,若用Annotation的话就是AnnotationConfiguration类。例:Configuration config = new Configuration();config.configure("hibernate.cfg.xml");//用configure()方法取得。//或.........【阅读全文】

阅读(911) | 评论(0) | 转发(0)

发布时间:2014-04-14 23:39:37

01.java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z 02.    at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1837) 03.    at org.hibernate.cfg.AnnotationBinder.processIdPropertie.........【阅读全文】

阅读(808) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册