Following are the differences between Aggregation and Association
Aggregation
- Creates a close relationship between records in the objects.
- Records in the child table delete automatically when their parent record is deleted.
- Example: Incidents belonging to a Contact are deleted when contact is deleted
Association
- creates a loose relationship between records in the objects.
- records in the child table should not be automatically deleted when their associated records in the parent table are deleted.
- Example: deleting a staff account does not delete incidents created by the account.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above