Apress

Spring Persistence with Hibernate

By Paul Tepper Fisher , Brian D. Murphy

Spring Persistence with Hibernate Cover Image

This book gets you rolling with fundamental Spring Framework 3 concepts and integrating persistence functionality into enterprise Java applications using Hibernate, the Java Persistence API (JPA) 2, and the Grails Object Relational Mapping tool, GORM.

Full Description

  • ISBN13: 978-1-4302-2632-1
  • 264 Pages
  • User Level: Intermediate
  • Publication Date: November 1, 2010
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $44.99
  • eBook Price: $31.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

Persistence is an important set of techniques and technologies for accessing and transacting data, and ensuring that data is mobile regardless of specific applications and contexts. In Java development, persistence is a key factor in enterprise, e-commerce, and other transaction-oriented applications.

Today, the Spring framework is the leading out-of-the-box solution for enterprise Java developers; in it, you can find a number of Java Persistence solutions.

This book gets you rolling with fundamental Spring Framework 3 concepts and integrating persistence functionality into enterprise Java applications using Hibernate, the Java™ Persistence API (JPA) 2, and the Grails Object Relational Mapping tool, GORM.

  • Covers core Hibernate fundamentals, demonstrating how the framework can be best utilized within a Spring application context
  • Covers how to use and integrate JPA 2, found in the new Java EE 6 platform
  • Covers how to integrate and use the new Grails persistence engine, GORM

What you’ll learn

  • How to use Spring Persistence, including using persistence tools in Spring as well as choosing the best Java Persistence frameworks/tools outside of Spring
  • How to work with Spring Framework features such as Inversion of Control (IoC), aspect-oriented programming (AOP), and more
  • How to work with Spring JDBC, use declarative transactions with Spring, and reap the benefits of a lightweight persistence strategy
  • How to work with Hibernate and integrate it into your Spring-based enterprise Java applications for transactions, data processing, and more
  • How to integrate with legacy databases, as well as use best practices for developing web services and handling Hibernate proxies and lazy collections
  • How to the integrate the Spring/Hibernate persistence tier with RIA technologies like Ajax and Flash
  • How to integrate JPA for architecting a well-layered persistence tier in your enterprise Java application
  • How to move a persistence tier into JPA
  • How to use and integrate the Grails persistence framework, GORM, and how to leverage it within a standard Java Spring MVC application

Who this book is for

This book is ideal for developers interested in learning more about persistence framework options on the Java platform, as well as fundamental Spring concepts. Because the book covers several persistence frameworks, it is suitable for anyone interested in learning more about Spring or any of the frameworks covered. Lastly, this book covers advanced topics related to persistence architecture and design patterns, and is ideal for beginning developers looking to learn more in these areas.

Table of Contents

Table of Contents

  1. Architecting Your Application with Spring, Hibernate, and Patterns
  2. Spring Basics
  3. Basic Application Setup
  4. Persistence with Hibernate
  5. Domain Model Fundamentals
  6. DAOs and Querying
  7. Transaction Management
  8. Effective Testing
  9. Best Practices and Advanced Techniques
  10. Integration Frameworks
  11. GORM and Grails
  12. Spring Roo
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

* Required Fields

On page 8:
The first right curly brace (PersonDao) is not correctly aligned.
Align the curly brace with the interface and not the method like it is for the RoleDao.

On page 61:
The text talks about the @Repository annotation, which is missing from the code.

On page 83:
"artEntities property in the Comment class" should be "artEntities property in the Category class"