Book description
Beginning Hibernate, Third Edition is ideal if you're experienced in Java with databases (the traditional, or "connected," approach), but new to open-source, lightweight Hibernate, a leading object-relational mapping and database-oriented application development framework.
This book packs in information about the release of the Hibernate 4.x persistence layer and provides a clear introduction to the current standard for object-relational persistence in Java. And since the book keeps its focus on Hibernate without wasting time on nonessential third-party tools, you'll be able to immediately start building transaction-based engines and applications.
Experienced authors Joseph Ottinger with Dave Minter and Jeff Linwood provide more in-depth examples than any other book for Hibernate beginners. The authors also present material in a lively, example-based manner—not a dry, theoretical, hard-to-read fashion.
What you'll learn
How to build enterprise Java-based transaction-type applications that access complex data with Hibernate
How to work with Hibernate 4
Where to integrate into the persistence life cycle
How to map using annotations, Hibernate XML files, and more
How to search and query with the new version of Hibernate
How to integrate with MongoDB using NoSQL
Who this book is for
This book is for Java developers who want to learn about Hibernate.
Table of contents
- Title Page
- Dedication
- Contents at a Glance
- Contents
- About the Authors
- About the Technical Reviewer
- Acknowledgments
- Introduction
- CHAPTER 1: An Introduction to Hibernate 4.2
- CHAPTER 2: Integrating and Configuring Hibernate
- CHAPTER 3: Building a Simple Application
-
CHAPTER 4: The Persistence Life Cycle
- Introducing the Life Cycle
- Entities, Classes, and Names
- Identifiers
- Entities and Associations
- Saving Entities
- Object Equality and Identity
- Loading Entities
- Merging Entities
- Refreshing Entities
- Updating Entities
- Deleting Entities
- Cascading Operations
- Lazy Loading, Proxies, and Collection Wrappers
- Querying Objects
- Summary
- CHAPTER 5: An Overview of Mapping
- CHAPTER 6: Mapping with Annotations
- CHAPTER 7: JPA Integration and Lifecycle Events
- CHAPTER 8: Using the Session
-
CHAPTER 9: Searches and Queries
- Hibernate Query Language (HQL)
- Syntax Basics
- Named Queries
- Logging and Commenting the Underlying SQL
- The from Clause and Aliases
- The select Clause and Projection
- Using Restrictions with HQL
- Using Named Parameters
- Paging Through the Result Set
- Obtaining a Unique Result
- Sorting Results with the order by Clause
- Associations
- Aggregate Methods
- Bulk Updates and Deletes with HQL
- Using Native SQL
- Summary
- CHAPTER 10: Advanced Queries Using Criteria
- CHAPTER 11: Filtering the Results of Searches
- CHAPTER 12: Leaving the Relational Database Behind: NoSQL
- APPENDIX: More Advanced Features
- Index
Product information
- Title: Beginning Hibernate, Third Edition
- Author(s):
- Release date: April 2014
- Publisher(s): Apress
- ISBN: 9781430265177
You might also like
book
Beginning Hibernate: For Hibernate 5
Get started with the Hibernate 5 persistence layer and gain a clear introduction to the current …
book
Just Hibernate
If you’re looking for a short, sweet, and simple introduction (or reintroduction) to Hibernate, this is …
book
Harnessing Hibernate
Harnessing Hibernate is an ideal introduction to the popular framework that lets Java developers work with …
book
Mastering Hibernate
Learn how to correctly utilize the most popular Object-Relational Mapping tool for your Enterprise application About …