Couchbase Support
Spring Data 对 Couchbase 的支持包含广泛的功能:
Spring Data support for Couchbase contains a wide range of features:
-
带有xref:couchbase/configuration.adoc[Java-based
@Configuration
类的 Spring 配置支持。 -
Spring configuration support with Java-based
@Configuration
classes. -
xref:couchbase/template.adoc[
CouchbaseTemplate
和`ReactiveCouchbaseTemplate` 帮助类,在 Couchbase 集合和 POJO 之间提供对象映射。 -
The
CouchbaseTemplate
andReactiveCouchbaseTemplate
helper classes that provide object mapping between Couchbase collections and POJOs. -
Exception translation 进入 Spring 的便携式数据访问https://www.iokays.com/spring-data-commonsdata-access.html#dao-exceptions[数据访问异常层次结构]。
-
Exception translation into Spring’s portable Data Access Exception Hierarchy.
-
与 Spring’s 集成了功能丰富的对象映射https://www.iokays.com/spring-data-commonscore.html#core-convert[转换服务]。
-
Feature rich object mapping integrated with Spring’s Conversion Service.
-
基于注释的映射元数据,可扩展以支持其他元数据格式。
-
Annotation-based mapping metadata that is extensible to support other metadata formats.
-
imperative and reactive
Repository
interfaces 的自动实现,包括对 custom query methods 的支持。 -
Automatic implementation of imperative and reactive
Repository
interfaces including support for custom query methods.
对于大多数数据导向的任务,你可以使用 [Reactive]CouchbaseTemplate
或 Repository
支持,这两种支持都使用丰富的对象映射功能。Spring Data Couchbase 针对各种 API 中的对象使用了与 Couchbase Java SDK 中发现的命名约定一致的命名约定,以便熟悉它们,并且,以便你可以将你的现有知识映射到 Spring API。
For most data-oriented tasks, you can use the [Reactive]CouchbaseTemplate
or the Repository
support, both of which use the rich object-mapping functionality.
Spring Data Couchbase uses consistent naming conventions on objects in various APIs to those found in the Couchbase Java SDK so that they are familiar and so that you can map your existing knowledge onto the Spring APIs.