Let's explore basic aggregation and composition aggregation further.
让我们更进一步探讨基本聚合和组合聚合。
Aggregation and composition relationships generally represent "has a" relationships, where one class is subordinate to another.
聚合和复合关系通常表示“拥有”关系,其中一个类隶属于另一个类。
With aggregation and composition, anything you do to the whole in the database you almost always need to do to the parts, whereas with association that is not the case.
对于聚合和组合,在数据库中对整体所做的操作通常需要同时对部分进行操作,而关联就不是这样。
应用推荐