- Full Description
Beginning Hibernate, Second Edition is ideal if youre experienced in Java with databases (the traditional, or connected, approach), but new to open-source, lightweight Hibernatethe de facto object-relational mapping and database-oriented application development framework.
This book packs in information about the release of the Hibernate 3.5 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, youll be able to immediately start building transaction-based engines and applications.
Experienced authors 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 mannernot a dry, theoretical, hard-to-read fashion.
What youll learn
- How to build enterprise Java-based transaction-type applications that access complex data with Hibernate, including Software as a Service (SaaS)
- How to work with Hibernate 3.5
- Where to integrate into the persistence lifecycle, including cloud application implications
- How to map using annotations, Hibernate XML files, and more
- How to search and query with the new version of Hibernate
- When to integrate with Spring, Grails, and more
Who this book is for
This book is for Java developers who want to learn about Hibernate.
- Table of Contents
Table of Contents
- An Introduction to Hibernate
- Integrating and Configuring Hibernate
- Building a Simple Application
- The Persistence Life Cycle
- An Overview of Mapping
- Mapping with Annotations
- Creating Mappings with Hibernate XML Files
- Using the Session
- Searches and Queries
- Advanced Queries Using Criteria
- Filtering the Results of Searches
- Case Study Using Hibernate with an Existing Database
- Source Code/Downloads
Please Login to submit errata.On page 19:
In first paragraph after Listing 2-2:
It is not the dialect property that is used without the "hibernate." - prefix instead it is the show_sql property.
That's only a small issue ;-)
but it might confuse some readers.
On page 58:in listing 3-22, it mentioned and imported a class called CategoryDAO from sample.dao package which is not exist in any pages of the book and even the source code.
On page 58:Listing 3-22 has three compiler errors:
1 - line 6 "The import sample.dao.CategoryDAO cannot be resolved" - CategoryDAO does not exist in sample.dao
2 - line 14 "CategoryDAO cannot be resolved to a type" - CategoryDAO does not exist, and
3 - line 32 "AdException cannot be resolved to a type" - AdException does not exist.
This listing also contains logical errors in the fact that it is supposed to display information fetched from a database, yet it contains no logic that interacts with the database(no connection, no query, etc.).