Book Image

Java Hibernate Cookbook

By : Prajapati, Ranapariya
Book Image

Java Hibernate Cookbook

By: Prajapati, Ranapariya

Overview of this book

This book will provide a useful hands-on guide to Hibernate to accomplish the development of a real-time Hibernate application. We will start with the basics of Hibernate, which include setting up Hibernate – the pre-requisites and multiple ways of configuring Hibernate using Java. We will then dive deep into the fundamentals of Hibernate such as SessionFactory, session, criteria, working with objects and criteria. This will help a developer have a better understanding of how Hibernate works and what needs to be done to run a Hibernate application. Moving on, we will learn how to work with annotations, associations and collections. In the final chapters, we will see explore querying, advanced Hibernate concepts and integration with other frameworks.
Table of Contents (10 chapters)
9
Index

Introduction

This chapter shows a different functionality and an API used to query with hibernate. In this chapter, you will also learn how hibernate provides a facility to perform complex queries in an object-oriented manner.

We will discuss a number of functionalities useful while querying, such as an alias, aggregate functions, and subquery. Sometimes, we need to use a native SQL in hibernate, and you will also learn about executing it. Apart from this, you will learn HQL (Hibernate Query Language), which provides a purely object-oriented way to execute the query, NamedQuery, and formulas.