| | |  | Modeling & Simulation | Home » » » Harnessing Hibernate | | | | | | | Product Promotions: | | | | | Description: | | Harnessing Hibernate is an ideal introduction to the popular framework that lets Java developers work with information from a relational database easily and efficiently. Databases are a very different world than Java objects, and they often involve people with different skills and specializations. With Hibernate, bridging these two worlds is significantly easier, and with this book, you can get up to speed with Hibernate quickly.
Rather than present you with another reference, Harnessing Hibernate lets you explore the system, from download and configuration through a series of projects that demonstrate how to accomplish a variety of practical goals. The new edition of this concise guide walks you through Hibernate's primary features, which include mapping from Java classes to database tables, and from Java data types to SQL data types. You will also learn about Hibernate's data query and retrieval facilities, and much more.
By reading and following along with the examples, you can get your own Hibernate environment set up quickly and start using it for real-world tasks right away. Harnessing Hibernate teaches you how to:
- Perform Object/Relational mapping
- Work with persistent data from Java code
- Work with groups and relationships between objects
- Extend Hibernate's rich type support for your own needs
- Simplify query creation using criteria and examples
- Use the Hibernate Query Language (HQL) and understand how it differs from SQL
- Use Hibernate in conjunction with Spring
- Use Hibernate in conjunction with other packages, such as the Stripes web framework and the Eclipse IDE
Once you're past the first few chapters, you can jump to topics that you find particularly interesting or relevant. All background material and explanations of how Hibernate works and why is in the service of a focused task. Source code can be downloaded from the book's website.
If using SQL is an uncomfortable chore, Harnessing Hibernate offers you an effective and trouble-free method for working with the information you store in your applications.
| | | Product Details: | | | Author:
| James Elliott PH.D. | | Paperback:
| 382 pages | | Publisher:
| O'Reilly Media | | Publication Date:
| April 29, 2008 | | Language:
| English | | ISBN:
| 0596517726 | | Product Length:
| 9.12 inches | | Product Width:
| 7.08 inches | | Product Height:
| 0.89 inches | | Product Weight:
| 1.3 pounds | | Package Length:
| 9.13 inches | | Package Width:
| 7.01 inches | | Package Height:
| 0.94 inches | | Package Weight:
| 1.41 pounds | | Average Customer Rating:
| based on 21 reviews |
| | | | Customer Reviews: | |
Average Customer Review:
( 21 customer reviews )
Write an online review and share your thoughts with other customers.
Most Helpful Customer Reviews
23 of 24 found the following review helpful:
Expected moreJan 11, 2009
By Charlie The chapter about eclipse and hibernate was somewhat useful, the rest was some sort of tedious tribute to ant, maven and open software in general. The main argument seems to avoid 'complex joins', why would you work with databases at all if you think joins between two tables is rocket science? What will you do if hibernate fails and you don't understand whats going on beneath? How can you design a good database if you find these things to complex?
I bought the book to learn HIBERNATE, not ant, not maven etc. The examples are poor, i.e it shows how to do a one-to-many relationship, what about other relationships?
To me, the hibernate documentation was much more useful, seriously.
12 of 12 found the following review helpful:
Beginner's HibernateOct 05, 2008
By Eric Jain Nice step-by-step guide for building a web application that makes use of Hibernate. This fills in an important gap left by the official Hibernate documentation. However, a consequence of this approach is that much of the book ends up being devoted to explaining how to set up the chosen tools and frameworks (see table of contents). If you are instead looking for more in-depth information on topics such as session and object lifecycles, complicated mappings or performance, you'll find more information in the official Hibernate documentation (or in the corresponding section in the Spring documentation). This book really ought to have a less cute, but more descriptive title.
8 of 8 found the following review helpful:
Not enough Hibernate Detail - Poor BookJan 07, 2009
By K. Langer
"Java Lover"
I ordered and read this book. Overall, I was able to get information from it but it was not complete enough. I ended up finding more answers from the internet and from "Beginning Hibernate" (Apress). The Apress book was ordered recently and is really meant for developers. It has a lot of clear examples and work around approaches for odd HQL things (i.e. use Views if you have HQL aggregate issues).
Where the Programming Hibernate lost me (my interest that is) was the extensive discussion about Maven. Who cares about Maven. It is a good build system but Maven is _not_ required to use Hibernate. Why discuss it? This book and the Apress books were about the same length (in pages) so much of the O'Reilly book was wasted talking about Maven when Hibernate (the purpose of the book) should have been discussed. Plus, it adds complexity if you need Maven to do the examples.
If you are getting into Hibernate, check out the Apress book first. Then look at this book.
7 of 8 found the following review helpful:
Only really an IntroductionOct 31, 2008
By Alex Turner I am totally new to hibernate, and I was hoping for a book that would serve as a comprehensive guide to hibernate. I was rather disappointed. The book constantly says: you can do this really neato thing, but it's beyond the scope of this book. The chapter on HQL was very brief indeed really only scratching the surface, which was a bit surprising as it would seem to me that using HQL would be a very common task which would benefit from in depth coverage. The chapter on annotations was also a bit light as this seems to be the new preferred way to use hibernate amongst developers today.
Despite these grumbles with the book, I found it a helpful and clear introduction to hibernate that did at least give me an overview in a clear and concise manner. The coverage of features in hibernate 3 was good too, as other books have become a bit dated. The later chapters on how to integrate hibernate with other tools are very useful, and I found the inclusion of stripes particularly poignant. It's a good book, but not great if what you want is an in depth understanding of hibernate.
12 of 16 found the following review helpful:
Harness Hibernate... fastJun 10, 2008
By W. Lehman
"Lionel Hutz"
Harnessing Hibernate is a fine book, which uses the most efficient ways to achieve its goal. Though focusing on Hibernate, the book enlists the usage of various frameworks such as Spring Framework, Stripes and Maven.
Part I: Hibernate in a hurry: The core
Build: The book starts with how you should build which used to be a dread. The authors choose to use Ant - Maven task, which is cool. I use Maven directly, but that's beside the point. Both approaches are better than finding the JARs on the web.
Database: HSQLDB is what the book recommends and for some reason it makes sense . It really is the best way to go. I am not suggesting to format your Oracle DB server and install HSQLDB; but I am suggesting you stay focused and worry about the big DB later; the book goes back to a larger DB; so don't worry too much right now.
The Project Hierarchy: This one, I must admit, I do not care for; I think Maven directory structure is better and one should not have to create this manually, but that's probably personal. This is later reviewed in Chapter 12: Maven in More Depth.
Core hibernate: The book doesn't mess around too much. It explains how to configure hibernate and before long you find your hands in hibernate mapping. From chapter 2 through chapter 9 you'll find yourself in the core of Hibernate: mapping, hibernate configuration, persistent objects (creating and finding), collections and associations, richer associations, custom value types, annotations, criteria queries and a look at HQL.
Part II: Playing nice with others: beyond the core
MySQL - a nice short intro to MySQL is shown.
Hibernate and Eclipse - yes, this is in here too (and up to date Eclipse v3.3). And just in time for you to get ready for a later chapter, Spring and Hibernate, which is the way J2EE is going anyway (lightweight).
Maven in more depth - Maven does not have many books out there and this is a very nice in depth explanation. If you think you've gotten short changed, take a look at Java Power Tools (you'll love that book too). The chapter is enough to get you moving with Maven, and if your Maven experience is anything like mine, you'll never go back to Ant.
Hibernate and Spring - this book could not have gotten any better than this. Spring, is like a dream. Rod Johnson, Colin Sampaleanu and team have done it well. Unlike the other monolithic approach, Spring takes advantage of already existing frameworks and offers this invisible layer to allow you to focus on what's important; your business code... and, of course, the book delivers. It shows you how Spring simplifies Hibernate development. If you're new to layered development a la separation of concerns (SoC) the book first introduces you to the DAO pattern. It then continues with the reason so many of us like the Spring framework: HibernateDAOSupport and the HibernateTemplate. Although I prefer to use the HibernateTemplate directly and avoid loosing my one chance at inheritance, I agree with the book examples. The authors are tying to help you understand what kind of support Spring offers.
Stripes with Spring and Hibernate - Now, the book could just end here and be done with it, but no, it continues with the web app. I mean, wow. The book ends with style. It uses Tomcat - and I think it does it to prove a point. You don't need a fancy big server to get J2EE running these days. Stripes is a cool project to work with and I thank the authors for introducing me to a framework I was clueless about.
This book is truly amazing. If you're looking for an in-depth approach to Hibernate take a look at Java Persistence with Hibernate. If, however, you're an impatient developer this is the book for you. I think it offers just enough in-depth theory and it keeps you awake with frequent easy to understand code.
James Elliott, Timothy M. O'Brien and Ryan Fowler; I thank you all for writing this book.
/.Will
See all 21 customer reviews on Amazon.com
| | |
|