Skip to content

Commit 564f2ce

Browse files
authored
dataccess instead of domain
1 parent a778bfd commit 564f2ce

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

modules/ROOT/pages/architecture/layered_architecture.adoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Batch layer:: Exposes functionality to be used in batch-processes (e.g. mass imp
3636

3737
Logic layer:: Contains the business logic.
3838

39-
Domain layer:: The domain layer manages the domain entities. This usually includes their persistence.
39+
Dataaccess layer:: The dataaccess layer manages the entities including their storage and retrieval.
4040

4141
==== Front-end service
4242

@@ -62,9 +62,9 @@ Inside the same component (e.g. _Component A1_) the following rules adhere:
6262
* Each layer can only depend on resources from the same layer or from the layer below.
6363
_A1 UseCases_ in the logic layer might depend on the interfaces from the domain layer or have a dependency to another use-case from the same component in the logic layer.
6464
* A layer can [.underline]#never# depend on a layer above.
65-
The domain layer should never depend on the logic layer.
65+
The dataaccess layer should never depend on the logic layer.
6666
* Layers should not be skipped.
67-
The service layer should not depend on the domain layer directly.
67+
The service layer should not depend on the dataacess layer directly.
6868

6969
===== Dependencies between components
7070

@@ -77,8 +77,8 @@ For the next rules it is assumed that _Component A1_ is allowed to call _Compone
7777
* Only the logic layer can have dependencies on other use cases from other components, because it is a business dependency.
7878
The logic layer of _Component A1_ depends on the logic layer of _Component A2_.
7979
* The Service layer of _Component A1_ should [.underline]#not# have a dependency to any other layer in _Component A2_
80-
* The Logic Layer of _Component A1_ should [.underline]#not# have a dependency to the domain or the service layer in _Component A2_
81-
* The Domain Layer of _Component A1_ should [.underline]#not# have a dependency to any other layer in _Component A2_
80+
* The Logic Layer of _Component A1_ should [.underline]#not# have a dependency to the dataaccess or the service layer in _Component A2_
81+
* The Dataaccess Layer of _Component A1_ should [.underline]#not# have a dependency to any other layer in _Component A2_
8282

8383
===== Dependencies to external service
8484

@@ -94,7 +94,7 @@ Other layer should [.underline]#never# expose their functionality to external se
9494

9595
== Constraints and alternatives
9696

97-
For services with a very limited number of use cases and exposed endpoints, that are also planned to stay small, the three layers might be an overhead. In such cases it might be an option to combine the logic and service layer. Logic and domain layers should never be combined.
97+
For services with a very limited number of use cases and exposed endpoints, that are also planned to stay small, the three layers might be an overhead. In such cases it might be an option to combine the logic and service layer. Logic and dataaccess layers should never be combined.
9898

9999
For large modulith systems further rules and stricter divisions might be necessary. A possible way to handle this is to keep API and Implementation even stricter separated.
100100

@@ -157,7 +157,7 @@ The `«artifact»` is typically the technical name of the application.
157157

158158
| «layer» |
159159
The technical layers the code belongs to. The layers are described below.
160-
| `domain`
160+
| `dataaccess`
161161

162162
| «detail»
163163
| Depending on the size of the application it might make sense to further divide the layers.
@@ -182,7 +182,7 @@ For versioning of the APIs further sub-packages can be created.
182182
|`logic`
183183
|No details expected
184184

185-
|`domain`
185+
|`dataaccess`
186186
|Use `repository` for repository and `dao` for DAOs.
187187
Entities belong into `model`.
188188

@@ -198,7 +198,7 @@ Check if common functionality might fit into other layers.
198198
----
199199
«root»
200200
├──.«component»
201-
| ├──.domain
201+
| ├──.dataaccess
202202
| | ├──.repository
203203
| | | ├──.«BusinessObject»Repository
204204
| | | └──.«BusinessObject»Fragment
@@ -219,7 +219,7 @@ Check if common functionality might fit into other layers.
219219
| └──.model
220220
| └──.«BusinessObject»Dto
221221
└──.general
222-
└──.domain
222+
└──.dataaccess
223223
└──.model
224224
└──.ApplicationPersistenceEntity
225225
----
@@ -230,7 +230,7 @@ Check if common functionality might fit into other layers.
230230
----
231231
com.devonfw.application.mts
232232
├──.bookingmanagement
233-
| ├──.domain
233+
| ├──.dataaccess
234234
| | ├──.repository
235235
| | | ├──.BookingRepository.java
236236
| | | ├──.InvitedGuestRepository.java
@@ -252,7 +252,7 @@ com.devonfw.application.mts
252252
| | └──.TableCto.java
253253
| └──.BookingManagementRestService.java
254254
├──.dishmanagement
255-
| ├──.domain
255+
| ├──.dataaccess
256256
| | ├──.repository
257257
| | | ├──.CategoryRepository.java
258258
| | | ├──.DishRepository.java
@@ -282,7 +282,7 @@ com.devonfw.application.mts
282282
| ├──.JWTAuthenticationFilter.java
283283
| ├──.QrCodeService.java
284284
| └──.ValidationService.java
285-
├──.domain
285+
├──.dataaccess
286286
| ├──.repository
287287
| | └──.BinaryObjectRepository.java
288288
| └──.model

0 commit comments

Comments
 (0)