Skip to content

Confused Between Layers when Using jmolecules-xxx-architecture #112

Answered by seekM
aaryadewa asked this question in Q&A
Discussion options

You must be logged in to vote

I'm learning about this myself, so take this with a grain of salt, but this is my understanding:

The purpose of the Entities, Aggregates, Value Objects and Services patterns is to help modelling your domain. Therefore, domain concepts modelled by these patterns should be in the Domain Layer and be annotated with one of the Domain Layer annotations, e.g. @DomainLayer.

The repository (interface, at least) is part of the Domain Model as well. The best source for this I can come up with right now is this quote from the Blue Book by Eric Evans (page 124)

Although REPOSITORIES [...] do not themselves come from the domain, they have meaningful roles in the domain design. These constructs comple…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@aaryadewa
Comment options

Comment options

You must be logged in to vote
1 reply
@aaryadewa
Comment options

Answer selected by aaryadewa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants