Book description
Beginning Hibernate is ideal if you're experienced in Java with databases (the traditional, or connected, approach), but are new to open source lightweight Hibernate—the most popular de facto object-relational mapping and database-oriented application development framework. This book packs in information about the release of the Hibernate 3.2.x persistence layer and provides a clear introduction to the current standard for object-relational persistence in Java.
Experienced author Dave Minter and contributor Jeff Linwood provide more in-depth examples than any other books for Hibernate beginners. The authors also present material in a lively, example-based mannernot in a dry, theoretical, hard-to-read fashion. 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.
Table of contents
- Title Page
- Contents at a Glance
- Contents
- About the Authors
- About the Technical Reviewer
- Acknowledgments
- Introduction
- CHAPTER 1: An Introduction to Hibernate 3
- CHAPTER 2: Integrating and Configuring Hibernate
- CHAPTER 3: Building a Simple Application
-
CHAPTER 4: The Persistence Life Cycle
- Introduction to the Life Cycle
- Entities, Classes, and Names
- Identifiers
- Entities and Associations
- Saving Entities
- Object Equality and Identity
- Loading 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: Creating Mappings with Hibernate XML Files
- CHAPTER 8: Using the Session
-
CHAPTER 9: Searches and Queries
- HQL
- Syntax Basics
- The First Example with HQL
- Logging 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
- Bulk Updates and Deletes with HQL
- Named Queries for HQL and SQL
- Using Native SQL
- Summary
- CHAPTER 10: Advanced Queries Using Criteria
- CHAPTER 11: Filtering the Results of Searches
- APPENDIX A: More Advanced Features
- APPENDIX B: Hibernate Tools
- APPENDIX C: Hibernate and Spring
- APPENDIX D: Upgrading from Hibernate 2
- Index
Product information
- Title: Beginning Hibernate: From Novice to Professional
- Author(s):
- Release date: August 2006
- Publisher(s): Apress
- ISBN: 9781590596937
You might also like
book
Hibernate: A J2EE™ Developer's Guide
Build fast, high-performance Java database applications with Hibernate. Hibernate makes it far easier to build robust, …
book
Hibernate: A Developer's Notebook
Do you enjoy writing software, except for the database code? Hibernate:A Developer's Notebook is for you. …
book
Beginning Hibernate: For Hibernate 5
Get started with the Hibernate 5 persistence layer and gain a clear introduction to the current …
book
Harnessing Hibernate
Harnessing Hibernate is an ideal introduction to the popular framework that lets Java developers work with …