HIBERNATE TIPS

More than 70 solutions to common Hibernate problems

Get more than 70 ready-to-use recipes for topics like basic and advanced mappings, logging, mapping of custom data types, Hibernate’s Java 8 support, caching, stored procedure calls and dynamically defined queries.

WHAT WILL YOU LEARN FROM THIS BOOK

This book gives you more than 70 ready-to-use recipes that show how to efficiently implement your persistence layer with Hibernate’s basic and advanced features. Each Hibernate tip consists of one or more code samples and an easy-to-follow step-by-step explanation. You can also download an example project with executable test cases for each Hibernate tip.

  • Use basic and advanced mappings to map an entity to a database table.
  • Use Java 8’s new APIs and programming concepts with Hibernate 5.
  • Go beyond the JPA standard and use Hibernate’s proprietary mapping and query capabilities.
  • Perform JPQL, native SQL, or Criteria queries to read records from the database and update or delete multiple entities at once.
  • Call stored procedures in your database with ad-hoc and named queries.
  • Use Hibernate’s first level, second level, and query cache to improve the performance of your application.

WHO SHOULD READ IT

You’re in the right place if you are looking for recipes on how to use Hibernate to implement your business requirements.

To get the most out of this book, you should already be familiar with the general concepts of JPA and Hibernate. I don’t explain Hibernate’s general concepts, and therefore this book is not intended for beginners. But, if you’re already familiar with ORM frameworks and like to learn by doing, you may find this example-based approach helpful.

DOWNLOAD FREE SAMPLE CHAPTERS

Download the first 30 pages of Hibernate Tips – More than 70 solutions to common Hibernate problems now and take a look inside the book.

HIBERNATE TIPS

More than 70 solutions to common Hibernate problems

When you use Hibernate in your projects, you quickly recognize that you need to do more than just add @Entity annotations to your domain model classes. Real-world applications often require advanced mappings, complex queries, custom data types, and caching.

Hibernate can do all of that. You just have to know which annotations and APIs you need to use.

Hibernate Tips: More than 70 solutions to common Hibernate problems shows you how to efficiently implement your persistence layer with Hibernate’s basic and advanced features. Each Hibernate tip consists of one or more code samples and an easy-to-follow step-by-step explanation.

You can also download an example project with executable test cases for each Hibernate tip.

What others say about the book


If you are working with Hibernate ORM, Thorben’s book should be on your desk. Excellent content, presented in a very practical FAQ-style format.

A copy of “Hibernate Tips” should be given to each developer when joining a project using Hibernate.
Gunnar Morling
Open Source Software Engineer
I am a big fan of books that provide information you can use right away. I can recommend Hibernate Tips by Thorben Janssen because it helps you to solve problems you will face if you use Hibernate.
Petri Kainulainen
Software Developer
Thorben’s book tackles real-world tasks and problems that arise during development with Hibernate. The table of contents reads like a best-of-Hibernate-questions that have been asked during everyday development, from getting started to harder problems.

The book helps me a lot, providing my developers with short, concise answers they need to solve their problem at hand.
Michael Simons
Senior Developer
This book is a perfect extension to Thorben’s Hibernate course. It offers a quick problem-solution reference guide for my daily work.
Stephan Knitelius
Senior Developer

About the author

Thorben Janssen has been a software developer and architect for over 20 years. At the beginning of his career, he used one of the first Hibernate releases to implement the persistence layer of enterprise applications.

Since then, he has used the framework to implement applications of various sizes with complex business and performance requirements.

After blogging for several years about JPA and Hibernate, he decided to quit his day job in October 2016 to follow his passion for writing and teaching.

Since then, he has been working as an independent trainer, author, and consultant to show software developers how to use Hibernate and JPA to avoid common problems and implement their persistence layer with ease.