Hibernate.orgCommunity Documentation

Hibernate Getting Started Guide

4.2.12.Final

2014-04-08


Table of Contents

Preface
1. Get Involved
2. Tutorial code
1. Obtaining Hibernate
1.1. Release Bundle Downloads
1.2. Maven Repository Artifacts
2. Tutorial Using Native Hibernate APIs and hbm.xml Mappings
2.1. The Hibernate configuration file
2.2. The entity Java class
2.3. The mapping file
2.4. Example code
2.5. Take it further!
3. Tutorial Using Native Hibernate APIs and Annotation Mappings
3.1. The Hibernate configuration file
3.2. The annotated entity Java class
3.3. Example code
3.4. Take it further!
4. Tutorial Using the Java Persistence API (JPA)
4.1. persistence.xml
4.2. The annotated entity Java class
4.3. Example code
4.4. Take it further!
5. Tutorial Using Envers
5.1. persistence.xml
5.2. The annotated entity Java class
5.3. Example code
5.4. Take it further!
6. OSGi Tutorial
6.1. Project Overview
6.2. Project Structure
6.3. TODOs
6.4. Karaf Commands

List of Examples

2.1. The class mapping element
2.2. The id mapping element
2.3. The property mapping element
2.4. Obtaining the org.hibernate.SessionFactory
2.5. Saving entities
2.6. Obtaining a list of entities
3.1. Identifying the class as an entity
3.2. Identifying the identifier property
3.3. Identifying basic properties
4.1. persistence.xml
4.2. Obtaining the javax.persistence.EntityManagerFactory
4.3. Saving (persisting) entities
4.4. Obtaining a list of entities
5.1. Using the org.hibernate.envers.AuditReader