Chapter 18: Relationships in Object-Relational Mapping

Learning Objectives

Upon completing the content in this chapter, you should be able to do the following:

  1. Build persistent model classes that have one-to-many, many-to-one, one-to-one, and many-to-many relationships
  2. Understand how these relationships are represented in a relational database

Key Terminology

As you read though this chapter, make note of the following key terms and their definitions.

Types of Relationships

  1. one-to-one relationship
  2. one-to-many relationship
  3. many-to-one relationship
  4. many-to-many relationship

Creating a Many-to-One Relationship

  1. truncate

Creating a One-to-One Relationship

  1. transient
  2. cascades

Creating a Many-to-Many Relationship

  1. data transfer object
  2. DTO
  3. join table

Chapter Content