Skip to content

Commit 09079c5

Browse files
author
Fabian Baumeister
committed
fix: Small change in wording
Refs: #82
1 parent db0914e commit 09079c5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

modules/ROOT/pages/architecture/hexagonale_architecture.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,16 @@ They usually only provide fields to hold." <<Hombergs21>>
186186
====
187187

188188
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.
192193
If they include business logic this is revealed and available outside of the core, which should not be the case.
193194
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.
195196
This makes the application more difficult to understand and harder to locate the place for new features or changes.
196197

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

200200

201201
[bibliography]

0 commit comments

Comments
 (0)