Chapter 2. Starting a project

 

In this chapter

  • Overview of Hibernate projects
  • “Hello World” with Hibernate and Java Persistence
  • Configuration and integration options

In this chapter, you’ll start with Hibernate and Java Persistence using a step-by-step example. You’ll see both persistence APIs and how to benefit from using either native Hibernate or standardized JPA. We first offer you a tour through Hibernate with a straightforward “Hello World” application. Before you start coding, you must decide which Hibernate modules to use in your project.

2.1. Introducing Hibernate

Hibernate is an ambitious project that aims to provide a complete solution to the problem of managing persistent data in Java. Today, Hibernate is not only an ORM service, but also a collection of data management tools extending well beyond ORM.

The Hibernate project suite includes the following:

2.2. “Hello World” with JPA

2.2.1. Configuring a persistence unit

2.2.2. Writing a persistent class

2.2.3. Storing and loading messages

2.3. Native Hibernate configuration

2.4. Summary

sitemap