aspose file tools*
The moose likes Spring and the fly likes Spring Hibernate best practices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Hibernate best practices" Watch "Spring Hibernate best practices" New topic
Author

Spring Hibernate best practices

visu nallamaru
Greenhorn

Joined: May 09, 2010
Posts: 15

Will this book contain the best practices when using the Spring hibernate combo ? Or this is just a guide for starters who want to learn how to integrate spring with hibernate ?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

This thread might answer your question.


[My Blog]
All roads lead to JavaRanch
Paul Fisher
author
Greenhorn

Joined: Jul 06, 2010
Posts: 23
Hi Visu,

Our book covers a little bit of each: we introduce some of the core concepts of both frameworks, but a recurrent theme throughout the book is how to leverage Spring 3 and Hibernate to build a production quality application. There is a strong focus on using best practices and design patterns, and how Spring can help decouple your dependencies, bootstrap your persistence tier, provide declarative transaction capability, etc.

We also introduce some of the newer development frameworks that build upon the foundation of Spring and Hibernate, such as Grails and Roo. We believe that covering these frameworks is important as it helps to provide a comparison of different development strategies, illustrating that there is more than one "best practice" for building a solid application. For instance, the classic Spring/Hibernate approach for developing a persistence tier leverages the DAO and service facade patterns, abstracting your persistence technology and providing clearly defined, transactional business rules/behavior. Grails and Roo, on the other hand, offer an approach that relies more on convention over configuration, reducing persistence tier code by minimizing the need for a DAO, instead leveraging the Active-Record pattern for lower-level persistence operations.

So, I think you will find that we tried to present a range of different strategies for developing a persistence tier using Spring 3 and Hibernate.

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Writing about Spring Persistence and Hibernate in only 350 pages must have been challenging. How did you manage to also stuff things like Grails and Roo in it ?
Paul Fisher
author
Greenhorn

Joined: Jul 06, 2010
Posts: 23
Hi Christophe,

It wasn't easy! But we tried to focus on topics that aren't covered in other books, without reiterating the documentation of the Spring and Hibernate frameworks (although we do include a good amount of introductory/getting started material, of course).

Thanks again for your comments and feedback on the book. It's been really encouraging to hear your contributions on this forum.

Best Regards,

Paul

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Hibernate best practices