March 2015
Intermediate to advanced
284 pages
6h 13m
English
CHAPTER 5
![]()
Many-to-One and One-to-One Mapping
In general, entities are related or associated to each other. For example, a Customer entity is associated with an Address entity. A Customer entity can have one or more than one Address entity (for example, Billing and Shipping).1 These relationships or associations are represented differently in a relational model and the domain/object model.
In a relational model, a foreign key column represents the dependency of one table on another. The Customer table has an AddressId as the foreign key column, which is the primary key of the Address table.
From the Customer entity perspective, it is a many-to-one ...
Read now
Unlock full access