Hibernate Recipes

2nd Edition

By Joseph Ottinger , Srinivas Guruzu , Gary Mak

Hibernate Recipes Cover Image

Hibernate Recipes is your pragmatic day-to-day reference and guide for doing all things involving the latest Hibernate 4. The book utilizes a problem solution format for fast look-up of problems you are likely to encounter. There are many books focused on learning Hibernate, but this book takes you further and shows how you can apply it practically in your daily work.

Full Description

  • ISBN13: 978-1-484201-28-2
  • 400 Pages
  • User Level: Intermediate
  • Publishing February 23, 2015, but available now as part of the Alpha Program
  • Available eBook Formats: PDF
  • Print Book Price: $54.99
  • eBook Price: $38.99

Related Titles

Full Description

Hibernate Recipes, Second Edition contains a collection of code recipes and templates for learning and building Hibernate solutions for you and your clients, including how to work with NoSQLs like MongoDB and of course the Spring Framework. This book is your pragmatic day-to-day reference and guide for doing all things involving Hibernate. There are many books focused on learning Hibernate, but this book takes you further and shows how you can apply it practically in your daily work. Hibernate Recipes, Second Edition is a must have book for your library.

Hibernate 4.x continues to be the most popular out-of-the-box, open source framework solution for Java persistence and data/database accessibility techniques and patterns and it works well with the most popular open source enterprise Java framework of all, the Spring Framework. Hibernate is used for e-commerce–based web applications as well as heavy-duty transactional systems for the enterprise.

What you’ll learn

  • How to use object-relational mapping in Hibernate
  • How to do various mappings, including one-to-one mapping, many-to-one mapping, collection mapping, component mapping, and inheritance mapping
  • How to use Hibernate Query Language (HQL)
  • How to perform batch processing and use native SQL, criteria queries, caching objects, and more
  • How to enable Hibernate in web applications with e-commerce
  • How to use Hibernate for heavy-duty enterprise transaction-based systems
  • How to integrate persistence done with Hibernate with Spring Framework solutions
  • How to integrate with NoSQLs, including the popular MongoDB

Who this book is for

This book is for experienced Java developers looking to use Hibernate, but is also appropriate for Java developers new to Hibernate.

Table of Contents

Table of Contents

1. Starting with Hibernate

2. Basic Mapping and Object Identity

3. Component Mapping

4. Inheritance and Custom Mapping

5. Many-to-One and One-to-One Mapping

6. Collection Mapping

7. Many-Valued Associations

8. HQL and JPA Query Language

9. Querying with Criteria and Example

10. Working with Objects

11. Batch Processing and Native SQL

12. Caching in Hibernate

13. Transactions and Concurrency

14. Integrating with MongoDB and other NoSQL

15. Web Applications

Errata

Please Login to submit errata.

No errata are currently published