![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
文章平均质量分 56
see_you_see_me
为了忘却的纪念
展开
-
在项目中集成hibernate遇到的问题(2)
在项目中集成hibernate时,有个一类实现了一个普通的接口并且继承了HibernateDaoSupport,在一个方法中准备是用父类的getHibernateTemplate().delete()方法时,提示:The type org.hibernate.LockMode cannot be resolved. It is indirectly referenced from requir原创 2012-01-15 23:11:48 · 400 阅读 · 0 评论 -
在项目中集成hibernate遇到的问题(1)
在项目中集成hibernate时,有个一类实现了一个普通的接口并且继承了HibernateDaoSupport结果报出异常:The hierarchy of the type xxx is inconsistentThe type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly re原创 2012-01-15 22:59:46 · 352 阅读 · 0 评论 -
在项目中集成hibernate遇到的问题(3)
在项目中集成hibernate时,在applicationContext.xml中创建sessionFactory,配置如下: org.hibernate.dialect.MySQLDialect true 20 hbm/User.hbm.xml 提示如下错误:Initialization of bean fail原创 2012-01-15 23:50:37 · 340 阅读 · 0 评论 -
Hibernate学习笔记2
当明白了Hibernate的原理和它在系统中的位置之后,最为重要的就是应用对数据增、删、改、查操作,一一介绍,以作记录使用spring + hibernate框架中,一般使用HibernateTemplate来使用Hibernatet1.保存数据 如果是继承HibernateDaoSupport来使用hibernate (1) HibernateTemplate.s原创 2012-01-17 09:30:36 · 948 阅读 · 0 评论 -
Hibernate学习笔记
1.创建一个用于测试的mysql数据库,数据库名为testdb2.在testdb中创建一个测试表user,结构如下:mysql> desc user;+----------+--------------+------+-----+---------+----------------+| Field | Type | Null | Key | Default |原创 2012-01-16 15:10:59 · 1013 阅读 · 0 评论