53 backend core core model group entity implementation 2 - #180
Conversation
includes a list of group member ids
…entity-implementation-2
…entity-implementation-2
changed attributes and functions to better conform to clean architecture
lennertdr
left a comment
There was a problem hiding this comment.
Thoughts:
-
Why keep full Student objects in a group? Thought we would minimize info by only using id's or fetching the data we need.
-
Here the group-id is readonly and could be null, so when a group object is made without id (before creating it in the database), it can't be changed later. Can't this be a problem?
|
brentjan
left a comment
There was a problem hiding this comment.
I thought we agreed that an entity should not have a direct list of other entities it has a relation with? But that an entity should have a list of id's?
…entity-implementation-2
replaced student objects with ids
|
Due to popular demand and to remain consistent with other entities, I replaced the list of student objects with a list of ids with a basic setter. |
Implementation of the
Groupentity with a list of members (Studentobjects) and an add & remove member method instead of a setter to better conform to domain rules of clean architecture