Thanks for clarifying that these are in fact two different books. I am one of the authors of the soon-to-be-published Spring Persistence with Hibernate, published by Apress. We are very much looking forward to the upcoming release of our book, and are excited to be giving away a copy of the book an JavaRanch. One of the goals of our book is to discuss approaches for building a scalable and production-ready application using Spring and Hibernate. We also introduce some of the core features in Spring 3, related to persistence. To demonstrate a range of persistence tier development strategies, we also introduce some newer strategies for integrating Spring and Hibernate, namely Grails and Roo — two very exciting projects that are founded on these two amazing open-source frameworks.
Thanks again for clarifying, and we are looking forward to hearing your feedback!
We do cover add-on and integration features for Hibernate, such as using Hibernate-Search, domain to DTO mapping tools, testing frameworks, RIA integration approaches, etc. However, we don't cover Middlegen as this isn't that popular of a solution anymore. I have personally used middlegen in the early days of Hibernate, but it's utility has decreased significantly now that it is so much simpler to define domain objects and customize mapping configurations. This makes mapping to legacy databases much easier. And for those looking to simply generate their schema from scratch, this has become rather simple and seamless in recent versions of Hibernate.
Of course, there are still viable uses for middlegen, but we tried to focus on those technologies that we felt offered the widest range of need for developers.