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 show 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.
This book gives you more than 70 ready-to-use solutions that show how to:
- Define standard mappings for basic attributes and entity associations.
- Implement your own attribute mappings and support custom data types.
- Use Hibernate's Java 8 support and other proprietary features.
- Read data from the database with JPQL, Criteria API, and native SQL queries.
- Call stored procedures and database functions.