Skip to content

Commit 70f973f

Browse files
taeyeonkimodrotbohm
taeyeonkim
authored andcommitted
DATACMNS-1660 - Add anchor to object-mapping recommendations in reference docs.
Original pull request: #428.
1 parent b69ef25 commit 70f973f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/asciidoc/object-mapping.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ Even if the intent is that the calculation should be preferred, it's important t
207207
The core idea here is to use factory methods instead of additional constructors to avoid the need for constructor disambiguation through `@PersistenceConstructor`.
208208
Instead, defaulting of properties is handled within the factory method.
209209

210+
[[mapping.general-recommendations]]
210211
== General recommendations
211212

212213
* _Try to stick to immutable objects_ -- Immutable objects are straightforward to create as materializing an object is then a matter of calling its constructor only.

0 commit comments

Comments
 (0)