What you are going to learn:
1, HelloWorld
A) XML
b) Annotation
2, Hibernate principle simulation-what is the O/R Mapping and why to have o/rmapping
3. Common O/R framework
4. Hibernate Basic Configuration
5, Hiberante Core interface Introduction
6, three states of the object
7. ID Generation Policy
8. Relationship Mapping
9. Hibernate query (HQL)
10. Continue to improve BBS2009 on the basis of Struts
11. Performance optimization
12. Supplementary topics
Style
1, the first vein, after the details
2, first operation, after the principle
3, heavy Annotation, light configuration file
A) JPA (Java Persistence API), learn this;
b) Hibernate-extension, this is the expansion of hibernate, do not care about this.
Resources
1, http://www.hibernate.org
2. Hibernate zh_ch Documentation
3, Hibernate annotation references
Attention:
1. The issue of version coordination between core and annotation, 3.5 is not the problem, hibernate will pack them together:
2. Hibernate log frame, simple Logging facade for Java (SLF4J): https://www.slf4j.org/
3. Original Reference Document:
Instructions for using the Hiberante documentation:hibernate-distribution-3.3.2.ga\documentation\manual\zh-cn\html_single
How to use hibernate annotations:Hibernate-annotations-3.4.0.ga\doc\reference\zh_cn\html_single
In the future there is no clear reference to these two documents.
SSH Approximate structure diagram:
Hibernate
Hiberante version of this use: hibernate-distribution-3.3.2. GA;
Annotation version: hibernate-annotations-3.4.0. GA.
With annotation as the main, XML supplemented, it is recommended to use annotation.
First impressions of Hibernate