hibernate 初印象

将要学习的内容:

1、HelloWorld
  a) xml
  b) annotation
2、Hibernate 原理模拟 - 什么是 O/R Mapping 以及为什么要有 O/RMapping
3、常见 O/R 框架
4、Hibernate 基础配置
5、Hiberante 核心接口介绍
6、对象的三种状态
7、ID 生成策略
8、关系映射
9、Hibernate查询(HQL)
10、在 Struts 基础上继续完善 BBS2009
11、性能优化
12、补充话题

风格
1、先脉络,后细节
2、先操作,后原理
3、重 Annotation,轻配置文件
a) JPA (Java Persistence API),就学这个;
b) hibernate - extension,这个是hibernate的拓展,不用管这个。

资源

1、http://www.hibernate.org
2、hibernate zh_CH 文档
3、hibernate annotation references

注意:

1、core 和 annotation之间版本协调问题,3.5以后就没这个问题了,hibernate 将它们一起打包好了:

2、hibernate的日志框架,Simple Logging Facade for Java (SLF4J):https://www.slf4j.org/

3、原始参考文档:

   hiberante 文档的使用说明:hibernate-distribution-3.3.2.GAdocumentationmanualzh-CNhtml_single

   hibernate 注解的使用说明:hibernate-annotations-3.4.0.GAdoc eferencezh_cnhtml_single

以后有不清楚的就参考这两个文件。

SSH 大致结构图:

hibernate 示意图

本次使用的 hiberante 版本:hibernate-distribution-3.3.2.GA;

annotation 版本:hibernate-annotations-3.4.0.GA。

以 annotation为主,xml为辅,建议用annotation。

原文地址:https://www.cnblogs.com/ShawnYang/p/6689413.html