Chapter 1. Setting Up Hibernate

In this chapter, we will cover the following recipes:

  • Getting the required libraries for hibernate
  • Creating a hibernate persistent class
  • Providing an XML-based hibernate mapping
  • Providing an annotation-based hibernate mapping
  • Providing a hibernate configuration using an XML file
  • Providing a hibernate configuration using a properties file
  • Configuring hibernate programmatically

Introduction

In this chapter, we will take a look at how the hibernate and ORM (Object-relational Mapping) frameworks work, how to configure hibernate in different ways, and the libraries that are required for the hibernate application. An essential part of the application is the hibernate configuration. Through the configuration, we can provide database ...

Get Java Hibernate Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.