ORM
文章平均质量分 91
哈天奇不奇
这个作者很懒,什么都没留下…
展开
-
Hibernate 一对一映射之主键关联 Annotation Example
0.pom.xml ...... <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <hibernate-version>3.6.10.Final</hibernate-version> &...原创 2012-08-29 14:50:14 · 84 阅读 · 0 评论 -
Hibernate HQL, SQL查询及抓取策略
1.Maven Dependency <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.a...原创 2013-04-10 09:53:34 · 139 阅读 · 0 评论 -
MyBatis CRUD Operations
1.Maven Dependency <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.a...原创 2013-03-27 16:48:43 · 204 阅读 · 0 评论 -
Spring Hibernate CRUD
1.Maven Dependency <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.ap...原创 2013-03-21 14:21:54 · 68 阅读 · 0 评论 -
Hibernate 3和4的HibernateUtil
Hibernate 3 1.Maven Dependency <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 h...原创 2013-02-16 16:19:13 · 86 阅读 · 0 评论 -
Hibernate getCurrentSession() vs openSession()
1、getCurrentSession()与openSession()的区别 * 采用getCurrentSession()创建的session会绑定到当前线程中,而采用openSession() 创建的session则不会 * 采用getCurrentSession()创建的session在commit或rollback时会自动关闭,而采用openSession()创建的ses...原创 2012-12-21 12:30:51 · 56 阅读 · 0 评论 -
Hibernate Many to Many Annotation Example
1.schema.sql alter table student_course drop foreign key FKB0A3729FA6819B7; alter table student_course drop foreign key FKB0A3729FA135F25D; drop table if exists course; drop table if exists stud...原创 2012-08-30 15:01:37 · 73 阅读 · 0 评论 -
Hibernate One to Many Annotation Example
0.pom.xml ...... <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <hibernate-version>3.6.10.Final</hibernate-version> <jav...原创 2012-08-30 09:46:08 · 80 阅读 · 0 评论 -
Hibernate 一对一映射之外键关联 Annotation Example
0.pom.xml ...... <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <hibernate-version>3.6.10.Final</hibernate-version> <java...原创 2012-08-29 16:39:46 · 90 阅读 · 0 评论 -
Hibernate常见术语、操作、区别
原创转载请注明出处:http://agilestyle.iteye.com/blog/2359961 Hibernate核心接口 Configuration SessionFactory Session Query Criteria Transaction Hibernate工作原理 配置Configuration对象,读取并解析配置文件 读取并解析映射信息,创...原创 2017-03-02 22:08:12 · 101 阅读 · 0 评论