Java Persistence API: Mapping & Configuring Relationships


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

In this course, you'll explore the various kinds of relationships that you might want to express using JPA annotations and how these relationships map to relational table design. You'll examine unidirectional as well as bidirectional one-to-one, one-to-many, many-to-one, and many-to-many relationships.

Once you're done with this course, you'll be able to model and express real-world relationships between your entities using JPA annotations. Finally, you'll learn how to finely manipulate how you want these relationships configured using underlying database tables.



Expected Duration (hours)
2.0

Lesson Objectives

Java Persistence API: Mapping & Configuring Relationships

  • discover the key concepts covered in this course
  • set up a one-to-one mapping between entities
  • configure join columns for one-to-one mapping
  • set up a bidirectional one-to-one mapping between entities
  • configure one-to-one-mapping with a shared primary key
  • configure one-to-one mapping with a join table
  • set up a one-to-many unidirectional mapping
  • configure a one-to-many mapping with a join table
  • configure eager loading of entities on the many side
  • configure lazy loading of entities on the many side
  • configure one-to-many mapping with join columns
  • retrieve many entities in order of specific attributes
  • persist entities in a certain order
  • set up a many-to-one unidirectional mapping
  • configure a many-to-one mapping with multiple join columns
  • configure a many-to-one mapping with a join table
  • set up a one-to-many, many-to-one bidirectional mapping
  • retrieve entities mapped in both directions
  • configure the owning side and owned side in mappings
  • set up a many-to-many bidirectional mapping
  • summarize the key concepts covered in this course
  • Course Number:
    it_jmjpehdj_03_enus

    Expertise Level
    Expert