Aggregation should be used only in cases where there is a compositional relationship between classes , where one class is composed of other classes, where the “parts” are incomplete outside the context of the whole.
Read moreHow do you use aggregate in Java?
If a class have an entity reference, it is known as Aggregation. Aggregation represents HAS-A relationship.
Read more