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: modules/ROOT/pages/architecture/hexagonale_architecture.adoc
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,16 +186,16 @@ They usually only provide fields to hold." <<Hombergs21>>
186
186
====
187
187
188
188
Considering java as an object oriented language it feels natural to implement business logic inside the entities themselves.
189
-
In large scale application with mixed skilled people it's proposed to not use rich domain models.
190
-
There are two reasons for this.
191
-
First of all, the domain objects are returned to the adapters.
189
+
In large scale application we propose to not use rich domain models.
190
+
There are two reasons for this:
191
+
192
+
. the domain objects are returned to the adapters.
192
193
If they include business logic this is revealed and available outside of the core, which should not be the case.
193
194
The answer to this problem could be an additional mapping, but this leads to a lot of unpractical mappings.
194
-
Furthermore, adding the business logic to the domain entities spreads it across use cases, entities and services.
195
+
. adding the business logic to the domain entities spreads it across use cases, entities and services.
195
196
This makes the application more difficult to understand and harder to locate the place for new features or changes.
196
197
197
-
It's proposed to implement the domain model as anemic entities.
198
-
Use use cases and services to implement the business logic and interact with the domain models.
198
+
Therefore, we propose to implement the domain model as anemic entities and make usage of use cases and services to implement the business logic and interact with the domain models.
0 commit comments