Introduction

本章介绍了 Spring Data 存储库的基本基础。在继续阅读 LDAP 特性之前,请确保你充分理解本文档中解释的基本概念。

This chapter explains the basic foundations of Spring Data repositories. Before continuing to the LDAP specifics, make sure you have a sound understanding of the basic concepts explained here.

Working with Spring Data Repositories

Spring Data 存储库抽象的目标是显著减少为各种持久性存储实现数据访问层所需的样板代码量。

The goal of the Spring Data repository abstraction is to significantly reduce the amount of boilerplate code required to implement data access layers for various persistence stores.

Spring Data 存储库文档及您的模块

Spring Data repository documentation and your module

本章介绍 Spring Data 存储库的核心概念和接口。本章中的信息是从 Spring Data Commons 模块提取的。它使用 Jakarta 持久化 API (JPA) 模块的配置和代码示例。如果你想要使用 XML 配置,应该根据你所使用的特定模块来调整 XML 命名空间声明和扩展类型。 介绍 XML 配置,它受支持于所有支持存储库 API 的 Spring Data 模块。 介绍一般情况下存储库抽象支持的查询方法关键字。有关你的模块的特定特性的详细信息,请参阅此文档中的该模块的章节。

This chapter explains the core concepts and interfaces of Spring Data repositories. The information in this chapter is pulled from the Spring Data Commons module. It uses the configuration and code samples for the Jakarta Persistence API (JPA) module. If you want to use XML configuration you should adapt the XML namespace declaration and the types to be extended to the equivalents of the particular module that you use. “Namespace reference” covers XML configuration, which is supported across all Spring Data modules that support the repository API. “Repository query keywords” covers the query method keywords supported by the repository abstraction in general. For detailed information on the specific features of your module, see the chapter on that module of this document.