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/asciidoc/object-mapping/projections.adoc
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,14 @@ the projection logic will not follow those cycles but only create cycle-free que
62
62
Multi-level projections are bounded to the entities they should project.
63
63
`RelationshipProperties` fall into the category of entities in this case and needs to get respected if projections get applied.
64
64
65
+
[[projections.sdn.manipulation]]
66
+
== Data manipulation of projections
67
+
68
+
If you have fetched the projection as a DTO, you can modify its values.
69
+
But in case you are using the interface-based projection, you cannot just update the interface.
70
+
A typical pattern that can be used is to provide a method in your domain entity class that consumes the interface and creates a domain entity with the copied values from the interface.
71
+
This way, you can then update the entity and persist it again with the projection blueprint/mask as described in the next section.
0 commit comments