Monthly Archives: December 2008

Review: Java Persistence with Hibernate

javaperhiber This is a review of “Java Persistence with Hibernate” by Christian Bauer and Gavin King

This is the second Manning book on Hibernate to find a place on my bookshelf. The first one being the older 1st edition of “Hibernate in Action”, however this book is a revised edition of the 1st edition and takes the cake as it is one of the most comprehensive books to cover this standard in the Java world of ORMs. Having personally written an ORM from the ground up during a previous project I can appreciate Hibernate’s popularity and the work the developers put into the project.

Now on to the book. At roughly 800 pages and published in 2007, this book basically covers version 3.2 of Hibernate so at its core, it is still very relevant for the majority of the things you will be doing with the latest version available today.

This book progressively takes the reader from the basics of understanding object persistence and object mapping all the way through optimizing fetching strategies and advanced queries. The book covers every aspect of Hibernate in a guided approach, driven by clearly laid out examples targeted toward the specific feature/context at hand. The book is not a quick reference guide, but caters more towards the individual who wants to get a full grasp of the major features in an example driven approach. I have used this book many times before implementing a particular feature, as a way to get a good refresh of the principles behind a feature and how it works within the larger context of the Hibernate environment.

I would recommend this book for anyone who wants to learn about or uses Hibernate on a daily basis. Any beginner who is competent in Java and has worked with a minimum of JDBC before, should be able to pick this book up and understand Hibernate with ease. Likewise, for those who are intermediate to advanced with ORMs will also be able to learn quite a bit by having this book handy when you need to better understand one of the many, many features that Hibernate provides.

Negatives: The only negative about this book is that they dedicate an entire chapter (~80 pages) to JBoss Seam, which seemed like a plug.

Recommended: Yes

Skill Levels: Beginner to Advanced. Beginner’s can read cover to cover over a solid period of time to fully understand the product. Intermediate to advanced can use the detailed table of contents to jump to a particular subject quickly and read excellent coverage of the feature of interest.

Side Note: Why is it that Oreilly only has one Hibernate book out on the market? It would seem that they should have more and Manning has the corner on the Hibernate titles. P.S. The Oreilly book is pretty good, more recent, but not nearly the extensive coverage contained in this title.

Tagged ,

Review: Spring in Action

siaThis is a review for “Spring in Action” 2nd Edition by Craig Walls

Spring in Action covers 2.0. The book is excellent and walks the reader through the basics of IoC, bean injection, AOP and then on to virtually every major component of this framework. For the database side of things, they cover basic JDBC usage, Hibernate, iBATIS, and JPA etc. Beyond that, Spring-WS, JMS, EJB 2.x and 3, JNDI and JMX integration is given excellent coverage. Then on to the client side it covers Spring MVC, Webflow, how to integrate w/ Struts, WebWork, JSF and even some DWR.

The book is huge covering over 700 pages and mine is currently tagged with about 50 page flags marking off all the topics I need quick access to. I read the book mainly to get up to speed on components I was unfamiliar with and would recommend this to anyone who does anything with Spring. The content in here is excellent and walks you through the entire framework in a logical approach, starting with the simpler stuff up to the advanced.

Recommend: YES
Skills: Java, Intermediate to Advanced. Excellent desk side reference for the heavy user.

Tagged , ,

Prana Framework is now under the Spring umbrella

Great news and I’ve been hoping for this for quite a while. Spring has taken the Prana Framework under its wing and added it as an official Spring extension called Spring Actionscript. Here is another post about this.

When I first got into developing in AS3/Flex this past summer I immediately began looking for some sort of “Spring like” bootstrap/DI container for AS3 apps. Well the playing field was pretty slim. The two main ones out there were SpiceFactory’s Parsley project and the Prana Framework. I tended to like Prana’s because at the time it was much closer to Spring and quite lightweight. I also compared the functionality and activity on the forums and it appeared that Prana was getting more traction. As I posted previously, due to the uncertainty of who would come out the winner in the AS3 IOC world I ended up putting in a light IOC container abstraction layer in my AS3 API as to not be bound too tightly to any one implementation… as my app was only calling variations of <code>getObject()</code> to fetch services etc.

So here we are several months later and with this news that Spring is officially making Prana it’s AS3 extension of Spring, I think we made the right decision. This is great news

Tagged , ,
Follow

Get every new post delivered to your Inbox.