Spring Persistence with Hibernate
- 4h 41m
- Brian D. Murphy, Paul Tepper Fisher
- Apress
- 2010
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
About the Authors
Paul Tepper Fisher first started began working in technology at Johns Hopkins University, where he spent several years developing a distance learning application for neuroscience, while completing graduate school there. He has founded two technology start-ups: SmartPants Media, Inc., a software development company specializing in interactive multimedia technology; and dialmercury.com, which develops telephony applications using VOIP and Java. Currently, Mr. Fisher is Manager of Technology at Wired.com, where he leads the software development team for the on-line publications of Wired.com, webmonkey.com, and howto.wired.com, using Spring, Grails, and Java technology.
Brian D. Murphy is the Chief Architect and Director of Engineering at Condé Nast. He was an early adopter of Spring and Hibernate and uses both technologies to power all of Condé's brands online, including wired.com, newyorker.com, epicurious.com, and vanityfair.com, drawing tens of millions of unique visitors each month. Brian deals with the challenges of building scalable, distributed systems every single day. He has a B.S. in Computer Science from Rutgers University.
In this Book
-
Architecting Your Application with Spring, Hibernate, and Patterns
-
Spring Basics
-
Basic Application Setup
-
Persistence with Hibernate
-
Domain Model Fundamentals
-
DAOs and Querying
-
Transaction Management
-
Effective Testing
-
Best Practices and Advanced Techniques
-
Integration Frameworks
-
GORM and Grails
-
Spring Roo