Get 1 Year of unlimited Apress for $199
Instant access to all available titles and new releases Apress Access Subscription

Hibernate Recipes

A Problem-Solution Approach

By Gary Mak , Srinivas Guruzu

  • eBook Price: $34.99
Buy eBook Buy Print Book
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.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-4302-2796-0
  • User Level: Beginner to Advanced
  • Publication Date: June 28, 2010
  • Available eBook Formats: EPUB, MOBI, PDF

Related Titles

  • Kubernetes Microservices with Docker
  • Pro Docker
  • Java Design Patterns
  • Oracle Certified Professional Java SE 8 Programmer Exam 1Z0-809
  • JavaScript Recipes
  • Pro CSS3 Layout Techniques
  • Introducing Gradle
  • Pivotal Certified Spring Web Application Developer Exam
  • Database Systems
  • Dynamic SQL
Full Description

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

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
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.

On page figure 10-3:
Arrows and methods (used a arrows labels) do not match. 'Persistent' to 'Detached' arrow should be labeled evict(), close(), clean(). 'Detached' to Persistent' arrow should be labeled update(), saveOrUpdate(), merge().

On page 1:
The source code is not a valid zip file. Can not be opened by Winzip
Author Comment:
We ran a test here at Apress, to diagnose any potential problem, and were able to successfully download and open the .zip file using Firefox + WinZip.

We suggest you try a different browser/utility combination.

On page 6:

insert into PUBLISHER(code, publisher_name, address) values ('002', 'Manning', 'San Francisco', 'CA');

Should be:
insert into PUBLISHER(code, publisher_name, address) values ('002', 'Manning', 'San Francisco, CA');

Minor error in a very good book so far.

Best-Sellers

    1. Unboxing Android USB

      $34.99

      View Book

    2. Beginning AngularJS

      $34.99

      View Book

    3. Beginning Ruby

      $27.99

      View Book

    4. Pro Arduino

      $27.99

      View Book