From ab8e6a9ee5e989c9c59de7ce08a3dad978fd24c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20M=C3=BCnch?= Date: Thu, 11 Apr 2024 14:58:47 +0200 Subject: [PATCH] Fix typo in object-mapping.adoc. --- src/main/antora/modules/ROOT/pages/object-mapping.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/antora/modules/ROOT/pages/object-mapping.adoc b/src/main/antora/modules/ROOT/pages/object-mapping.adoc index f8ffc335fd..fad8b4cca7 100644 --- a/src/main/antora/modules/ROOT/pages/object-mapping.adoc +++ b/src/main/antora/modules/ROOT/pages/object-mapping.adoc @@ -299,7 +299,7 @@ Spring Data automatically tries to detect a persistent entity's constructor to b The resolution algorithm works as follows: 1. If there is a constructor that is annotated with `@PersistenceCreator`, it is used. -2. If the type is a <> the primary constructor is used. +2. If the type is a <> the primary constructor is used. 3. If there is a single static factory method annotated with `@PersistenceCreator` then it is used. 4. If there is a single constructor, it is used. 5. If there are multiple constructors and exactly one is annotated with `@PersistenceCreator`, it is used.