First impressions of Hibernate

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.