Description
Follow-Up to #893
Description
Copy-Constructors are supposed to create a copy of a given value - by value, not reference.
This is done by constructing a new value for the constructors type by copying all fields from the old value to the one to be constructed.
Throughout the code-base this is currently flawed:
- Some Copy-Constructors miss required fields
- Some Copy-Constructors copy by reference, not value
Definition of Done
- Checked for all occurences of Copy-Constructors
- Adjusted all Copy-Constructors such that all required fields (no persistence-ids e.g.) are copied by value