From 043f433f1f47908cfc59ee04f5069f17d2b8c6db Mon Sep 17 00:00:00 2001 From: taeyeonkim Date: Tue, 28 Jan 2020 17:16:38 +0900 Subject: [PATCH] DATACMNS-1660 - Add anchor to object-mapping recommendations in reference docs. Original pull request: #428. --- src/main/asciidoc/object-mapping.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/asciidoc/object-mapping.adoc b/src/main/asciidoc/object-mapping.adoc index a5a709035..0db581487 100644 --- a/src/main/asciidoc/object-mapping.adoc +++ b/src/main/asciidoc/object-mapping.adoc @@ -204,6 +204,7 @@ Even if the intent is that the calculation should be preferred, it's important t The core idea here is to use factory methods instead of additional constructors to avoid the need for constructor disambiguation through `@PersistenceConstructor`. Instead, defaulting of properties is handled within the factory method. +[[mapping.general-recommendations]] == General recommendations * _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.