Join Books.org — it's free

Object-Oriented Programming
Hibernate Recipes: A Problem-Solution Approach by Gary Mak — book cover

Hibernate Recipes: A Problem-Solution Approach

by Gary Mak, Srinivas Guruzu
Write a review
Log in to track your reading progress.

Overview

Hibernate continues to be the most popular out-of-the-box framework solution for Java Persistence and data/database accessibility techniques and patterns. It is used for e-commerce-based web applications as well as heavy-duty transactional systems for the enterprise.

Gary Mak, the author of the best-selling Spring Recipes, now brings you Hibernate Recipes. This book contains a collection of code recipes and templates for learning and building Hibernate solutions for you and your clients.

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.

What you’ll learn

  • The basics of object-relational mapping and how Hibernate is best suited for it
  • 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
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

  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. Cashing in Hibernate 
  13. Transactions and Concurrency  
  14. Web Applications

About the Author, Gary Mak

Gary Mak, founder and chief consultant of Meta-Archit Software Technology Limited, has been a technical architect and application developer on the enterprise Java platform for more than seven years. He is the author of the Apress books Spring Recipes: A Problem-Solution Approach and Pro SpringSource dm Server. In his career, Gary has developed a number of Java-based software projects, most of which are application frameworks, system infrastructures, and software tools. He enjoys designing and implementing the complex parts of software projects. Gary has a master's degree in computer science. His research interests include object-oriented technology, aspect-oriented technology, design patterns, software reuse, and domain-driven development.

Gary specializes in building enterprise applications on technologies including Spring, Hibernate, JPA, JSF, Portlet, AJAX, and OSGi. He has been using the Spring Framework in his projects since Spring version 1.0. Gary has been an instructor of courses on enterprise Java, Spring, Hibernate, Web Services, and agile development. He has written a series of Spring and Hibernate tutorials as course materials, parts of which are open to the public, and they're gaining popularity in the Java community. In his spare time, he enjoys playing tennis and watching tennis competitions.

Reviews

There are no reviews yet. Log in to write one.

Book Details

Published
June 29, 2010
Publisher
Apress
Pages
312
ISBN
9781430227977

More by Gary Mak

Similar books