The aggregate Customer is not implemented correctly. It's lacking a equals(…)/ hashCode() implementation based on its identifier. This currently doesn't cause any issues but could if they'd be held in a collection like a Set. Ideally, it'd implement Salespoint's AbstractAggregateRoot and a dedicated SalespointIdentifier.
The aggregate
Customer
is not implemented correctly. It's lacking aequals(…)
/hashCode()
implementation based on its identifier. This currently doesn't cause any issues but could if they'd be held in a collection like aSet
. Ideally, it'd implement Salespoint'sAbstractAggregateRoot
and a dedicatedSalespointIdentifier
.