Spring Data JPA - Reference Documentation

Authors

Oliver Gierke

1.3.4.RELEASE

Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.


Table of Contents

Preface
1. Project metadata
I. Reference Documentation
1. Working with Spring Data Repositories
1.1. Core concepts
1.2. Query methods
1.2.1. Defining repository interfaces
Fine-tuning repository definition
1.2.2. Defining query methods
Query lookup strategies
Query creation
Property expressions
Special parameter handling
1.2.3. Creating repository instances
XML configuration
JavaConfig
Standalone usage
1.3. Custom implementations for Spring Data repositories
1.3.1. Adding custom behavior to single repositories
1.3.2. Adding custom behavior to all repositories
1.4. Spring Data extensions
1.4.1. Domain class web binding for Spring MVC
1.4.2. Web pagination
1.4.3. Repository populators
2. JPA Repositories
2.1. Introduction
2.1.1. Spring namespace
2.1.2. Annotation based configuration
2.2. Query methods
2.2.1. Query lookup strategies
2.2.2. Query creation
2.2.3. Using JPA NamedQueries
2.2.4. Using @Query
2.2.5. Using named parameters
2.2.6. Modifying queries
2.2.7. Applying query hints
2.3. Specifications
2.4. Transactionality
2.4.1. Transactional query methods
2.5. Locking
2.6. Auditing
2.6.1. Basics
Annotation based auditing metadata
Interface-based auditing metadata
AuditorAware
2.6.2. General auditing configuration
2.7. Miscellaneous
2.7.1. Merging persistence units
2.7.2. Classpath scanning for @Entity classes and JPA mapping files
2.7.3. CDI integration
II. Appendix
A. Namespace reference
A.1. The <repositories /> element
B. Repository query keywords
B.1. Supported query keywords
C. Frequently asked questions
Glossary