Book 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
Table of contents
- Copyright
- About the Authors
- About the Technical Reviewer
- Acknowledgments
- Preface
-
1. Architecting Your Application with Spring, Hibernate, and Patterns
- 1.1. The Benefit of a Consistent Approach
- 1.2. A Synergistic Partnership
- 1.3. Other Persistence Design Patterns
- 1.4. Summary
- 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
- 10.1. RESTful Web Services with Spring
- 10.2. Free-Text Search
- 10.3. Summary
-
11. GORM and Grails
- 11.1. A Crash Course in Groovy
- 11.2. Getting Grails Running
- 11.3. Defining the Grails Domain Model
- 11.4. Using Active Record As an Alternative to DAOs
- 11.5. Looking Under the Hood of GORM
- 11.6. Handling Associations in Grails
- 11.7. Scaffolding and Building Your Grails Application
- 11.8. Defining a Transactional Service Layer in Grails
- 11.9. Summary
-
12. Spring Roo
- 12.1. What Roo Is (and What It Is Not)
-
12.2. Creating a Domain Model with Roo
- 12.2.1. Getting Started with Roo
- 12.2.2. Creating a New Project
- 12.2.3. Adding Entities
- 12.2.4. Adding Fields
- 12.2.5. Exploring the Automatically Generated Testing Infrastructure
- 12.2.6. Mapping Associations
- 12.2.7. Modeling Inheritance
- 12.2.8. Adding Spring MVC
- 12.2.9. Adding Service Layers and DAOs
- 12.3. Now You See Me, Now You Don't—Removing Roo
- 12.4. Summary
Product information
- Title: Spring Persistence with Hibernate
- Author(s):
- Release date: October 2010
- Publisher(s): Apress
- ISBN: 9781430226321
You might also like
book
Tidy First?
Messy code is a nuisance. "Tidying" code, to make it more readable, requires breaking it up …
book
Deciphering Data Architectures
Data fabric, data lakehouse, and data mesh have recently appeared as viable alternatives to the modern …
book
Modern Software Engineering: Doing What Works to Build Better Software Faster
Improve Your Creativity, Effectiveness, and Ultimately, Your Code In Modern Software Engineering, continuous delivery pioneer David …
book
Java 8 in Action: Lambdas, streams, and functional-style programming
Java 8 in Action is a clearly written guide to to the new features of Java …