DATACMNS-1660 - Add anchor to object-mapping recommendations in reference docs.

Original pull request: #428.
This commit is contained in:
taeyeonkim
2020-01-28 17:16:38 +09:00
committed by Oliver Drotbohm
parent d894713d43
commit 043f433f1f

View File

@@ -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.