One-to-Many and Many-to-One are similar in Multiplicity but not Aspect (i.e. Directionality).
The mapping of Associations between entity classes and the Relationships between tables. There are two categories of Relationships:
- Multiplicity (ER term: cardinality)
- One-to-one relationships: Example Husband and Wife
- One-to-Many relationships: Example Mother and Children
- Many-to-Many relationships: Example Student and Subject
- Directionality : Not affect on mapping but makes difference on how we can access data.
- Uni-directional relationships: A relationship field or property that refers to the other entity.
- Bi-directional relationships: Each entity has a relationship field or property that refers to the other entity.