Jump to ratings and reviews
Rate this book

Spring Persistence with Hibernate

Rate this book
Spring Persistence with Hibernate is an easy-to-follow, step-by-step, and example-rich guide/reference to using Spring and Hibernate to build robust and effective Java applications. All the book's topics are explained with practical examples and easy-to-understand figures. The book is primarily for Spring developers and users who want to persist using the popular Hibernate persistence framework. Java, Hibernate, JPA, Spring, and open source developers in general will also find the book useful.

460 pages, Paperback

First published November 25, 2009

1 person is currently reading
11 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (9%)
4 stars
3 (27%)
3 stars
2 (18%)
2 stars
4 (36%)
1 star
1 (9%)
Displaying 1 - 3 of 3 reviews
Profile Image for Jeanne Boyarsky.
Author 28 books76 followers
December 12, 2010
Packt's “Spring Persistence with Hibernate” covers Spring 2.5. (Take care that you don't confuse it with the Apress book with the same title which covers Spring 3.0.)

Packt really needs to work on their editing process. I play a game when reading called “what page for the first typo.” The answer was page 3! (chapter vs chapters). I have read some Packt books of good quality, but unfortunately this wasn't one. The numerous typos included basic English, a typo in a code comment on page 364 and worst a typo in a code block on page 24. The later bothers me more as the technical content becomes suspect. As with most Packt books, the examples are longer than I would like and could omit getters/setters earlier.

There were a few cases where I had to go to the JavaDoc to understand distinctions between attribute values. The book text wasn't clear enough and didn't explain when one might want to choose those values. There was also some explanation of how to do something in Hibernate if not using Spring and Spring MVC. Good content, but a bit surprising given the title.

Now for some things I liked: cooks tour example with forward references, coverage of Hibernate and JPA APIs, explanations of IOC and AOP, introduction of DAOs with patterns.

Overall, I'd recommend you pick a different Spring 2.5 book or wait for the Spring 3 books to come out.
---
Disclosure: I received a copy of this book from the publisher in exchange for writing this review on behalf of JavaRanch.
Profile Image for Marten Deinum.
4 reviews4 followers
August 3, 2012
This book sets out to explain the usage of hibernate with the spring framework. This is basically done in the first chapters. It explains how to configure hibernate from within a spring ApplicationContext and it explains how to write a dao. To bad that, for the dao, they still use the old technique with HibernateTemplate/HibernateDaoSupport which isn’t recommended anymore since the release of spring 2.0, it is still in the framework for backwards compatibility. The book would have been better if they would explain this.

The remainder of the book is more or less an introduction to hibernate and explains how to write and execute HQL based queries, use the (Detached)Criteria API. Next to that it tries to explain spring, dependency injection and Spring MVC. In short everything is touched upon, but all just to little.

If you need a kickstart into configuring hibernate and spring and don’t have an hibernate knowledge this book could be starting guide. If you already have some knowledge on how to do those things, I would suggest JPA persistency with Hibernate (although a bit dated) and the spring reference guide. For the other parts there are some great books out there.
Profile Image for Heather.
119 reviews12 followers
January 24, 2013

I'm new to both hibernate and spring, and overall, I would say this book provided me with a decent starting point.

That being said, it was a little disappointing to work through some of the examples and have to do so many Google searches for missing information and additional clarity.

I also wish that a chapter, or even a few paragraphs had been dedicated to the hibernate tools (I have an existing DB schema I need to generate code for and found it odd that there was no real discussion of this capability).

Overall, a good starter, but needs to be supplemented with additional information. Also thanks to an earlier reviewer for pointing out the new DAO usage with the more recent versions of Spring - I found the documentation from Spring to concur :-)
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.