After we find the entity and value objects, we need to design the association between the objects.
1. Associate as few as possible and not create a complex network. Complex networks are not conducive to dividing boundaries, understanding and maintaining objects, and negatively impacting performance, usually by identifying relationships that need to exist throughout the business life cycle. For example, an order item needs to be linked to a product, but careful analysis, an order item does not need to have a relationship throughout the business life cycle, the order item only needs to be created at that point in time to obtain the price of the product and the product name, in order to be able to see some of the product's other information, You can retain the ID of a product on the order item.
2. Associate to keep the individual items as far as possible, and when establishing the association, consider whether there are some associated constraints.
The related design of domain driven design