You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/object-mapping.adoc
+3-3
Original file line number
Diff line number
Diff line change
@@ -78,13 +78,13 @@ For that we use the following algorithm:
78
78
1. If the property is immutable but exposes a `with…` method (see below), we use the `with…` method to create a new entity instance with the new property value.
79
79
2. If property access (i.e. access through getters and setters) is defined, we're invoking the setter method.
80
80
3. If the property is mutable we set the field directly.
81
-
4. If the property is immutable we're using the constructor to be used by persistence operations (see xref:object-mapping.adoc#mapping.object-creation[Object creation]) to create a copy of the instance.
81
+
4. If the property is immutable we're using the constructor to be used by persistence operations (see <<mapping.object-creation,Object creation>>) to create a copy of the instance.
82
82
5. By default, we set the field value directly.
83
83
84
84
[[mapping.property-population.details]]
85
85
.Property population internals
86
86
****
87
-
Similarly to our xref:object-mapping.adoc#mapping.object-creation.details[optimizations in object construction] we also use Spring Data runtime generated accessor classes to interact with the entity instance.
87
+
Similarly to our <<mapping.object-creation.details,optimizations in object construction>> we also use Spring Data runtime generated accessor classes to interact with the entity instance.
88
88
89
89
[source,java]
90
90
----
@@ -299,7 +299,7 @@ Spring Data automatically tries to detect a persistent entity's constructor to b
299
299
The resolution algorithm works as follows:
300
300
301
301
1. If there is a constructor that is annotated with `@PersistenceCreator`, it is used.
302
-
2. If the type is a xref:object-mapping.adoc#mapping.kotlin[Kotlin data cass] the primary constructor is used.
302
+
2. If the type is a <<mapping.kotlin,Kotlin data cass>> the primary constructor is used.
303
303
3. If there is a single static factory method annotated with `@PersistenceCreator` then it is used.
304
304
4. If there is a single constructor, it is used.
305
305
5. If there are multiple constructors and exactly one is annotated with `@PersistenceCreator`, it is used.
0 commit comments