Chapter 18: Relationships in Object-Relational Mapping
Learning Objectives
Upon completing the content in this chapter, you should be able to do the following:
- Build persistent model classes that have one-to-many, many-to-one, one-to-one, and many-to-many relationships
- 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
- one-to-one relationship
- one-to-many relationship
- many-to-one relationship
- many-to-many relationship
Creating a Many-to-One Relationship
- truncate
Creating a One-to-One Relationship
- transient
- cascades
Creating a Many-to-Many Relationship
- data transfer object
- DTO
- join table