![]() The palette could reference the compartment it is in (its an aggregat). ![]() Problem 1 : Who loads referenced aggregates? But how would the move operation be implemented then? And from a ddd point of view, it feels not right for me.Īnother approach would be to make each palette and each compartment its own aggregate. Two move operations could not be executed in parallel because of the aggregate versioning and so on. The Event log for this aggregate will grow infinitely. The move operation could be implemented without any problems in this case regarding its constraints (invariants). One solution would be to model the whole warehouse as an aggregate with palette and compartment entities. Stockitem could be a value object I think. Move (moves a palette from its current compartment to another).A compartment can hold zero or one palette.A palette is in exactly one compartment.Compartments (the places in the racks where the palettes are stored in).Articles(the things stored in the warehouse).Let us assume we identified the following real world objects: We want to model a warehouse application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |