March 2015
Intermediate to advanced
284 pages
6h 13m
English
CHAPTER 7
![]()
Many-Valued Associations
A many-valued association is by definition a collection of references to entities. The collection can be of type List, Set, Map, and so on in Java.
Why would you have a collection of references? When there is a parent/child relationship, and one parent can be associated to many children, the parent contains a collection of references to the child entities. In a relational model, suppose that two tables are dependent on each other; this relationship can be represented as a foreign key column in the dependent table. For one row in the parent table, many rows exist in the child table.
You saw the use of relationships ...
Read now
Unlock full access