Hibernate
文章平均质量分 78
passportandy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HibernateTemplate详解
HibernateTemplate提供非常多的常用方法来完成基本的操作,比如通常的增加、删除、修改、查询等操作,Spring 2.0更增加对命名SQL查询的支持,也增加对分页的支持。大部分情况下,使用Hibernate的常规用法,就可完成大多数DAO对象的CRUD操作。下面是HibernateTemplate的常用方法简介:q void delete(Object entity):删除指定持久化实转载 2011-12-17 13:38:11 · 3072 阅读 · 3 评论 -
Hibernate SQL方言 (hibernate.dialect) 汇总
Hibernate SQL方言 (hibernate.dialect) 汇总 标签: 杂谈 分类: hibernate 如果出现如下错误,则可能是Hibernate SQL方言 (hibernate.dialect)设置不正确。 Caused by: java.sql.SQLException: [Microsoft][SQLS转载 2011-12-24 18:19:58 · 1600 阅读 · 0 评论 -
org.springframework.orm.hibernate3.HibernateSystemException: a different object with the same identi
1、仅仅Hibernate情况: net.sf.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: ......... 这样的问题不知道大家有没有遇到? SessionFactory sess转载 2011-12-15 18:54:23 · 7384 阅读 · 0 评论 -
注解式框架搭建配置文件
1.applicationContext.xml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/s转载 2012-01-11 01:49:04 · 800 阅读 · 0 评论 -
JPA @MappedSuperclass注解的使用说明
JPA @MappedSuperclass注解的使用说明 基于代码复用和模型分离的思想,在项目开发中使用JPA的@MappedSuperclass注解将实体类的多个属性分别封装到不同的非实体类中。 1.@MappedSuperclass注解只能标准在类上:@Target({java.lang.annotation.ElementType.TYPE}) 2.转载 2012-02-16 23:28:27 · 1757 阅读 · 0 评论
分享