my Problem: i have got a collection with items, which must have a unique Name (choosen by the Operator). If an item is added to the collection, i would like to check if the Name is already used. So i have a consistence boundary around all items -> my aggregate root.
So i create an item parent aggregate root which implements the collection of items and checks if the item names are correct (unique), manages delete item/add item/validate item. This Aggregate parent root is stored in the repository. But this Aggregate parent is not a collection!? Do i have the wrong design!? My Aggregate root is only for Managing the items and i do not really need a database table for this parent (cause it is a singleton). Have i missed a Point!?
Thank you!
Stephan