Let me assume that I have the 2 aggregates as below.
data class Order(
val id: OrderId,
val shipmentIds: Set<ShipmentId>
) : BaseAggregate() {}
data class Shipment(
val id: ShipmentId,
var fromAddress: ShippingAddress,
var toAddress: ShippingAddress
) {}
In the Order
class, I reference a set of shipments by Aggregate root id. and I named it as shipmentIds
.
I assume we can just name it as shipments
rather than putting *ids
as suffix.
Could you guys let me know there would be any potential issue with this approach?