Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity-Annotation should reference owning Aggregate #65

Open
StephanPirnbaum opened this issue Oct 1, 2021 · 0 comments
Open

Entity-Annotation should reference owning Aggregate #65

StephanPirnbaum opened this issue Oct 1, 2021 · 0 comments

Comments

@StephanPirnbaum
Copy link
Collaborator

The interface org.jmolecules.ddd.types.Entity has generics to specify the aggregate root the entity belongs to. However, for the annotation, this is currently not the case. To have this consistent I propose to add an optional parameter to the @Entity annotation to specify the aggregate root. This would allow tools such as ArchUnit or jQAssistant to validate access to entities.

Opinions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant