Skip to content

Lesson 18 (ORM Part 3)

Courtney Frey edited this page Apr 15, 2022 · 2 revisions

Lesson 18: Object-Relational Mapping Part 3

In the prep work for this lesson, the students learned

  1. How to build persistent model classes with one-to-one and many-to-many relationships.
  2. What a composite key is.
  3. What a join table is.
  4. How to use different annotations such as @OneToOne and @ManyToMany.

Announcements

  1. After Class 18, students have all of the materials they need to complete the assignment.
  2. Check with your course manager for any additional announcements.

For Part-Time Students:

  1. Assignment 4 is due soon!

For Full-Time Students:

  • Welcome to Days 27 - 31!
  • Assignment 4 due by end of Day 32
  • Day 27:
    • Lesson 18
  • Day 28:
    • Work Day for ORM if needed. Students who grasp ORM can work on Assignment 4
  • Day 29:
    • Self-Assessment 2 (last one)
    • Work Day for Assignment 4
  • Days 30-31: Work Days for Assignment 4

Large Group Time (Instructor)

Lesson 18 Topics That Require Careful Attention

  1. Review the one-to-many and many-to-one relationships in preparation to discuss one-to-one and many-to-many relationships.
  2. Go over what the cascade parameter does in different scenarios and how cascade = CascadeType.ALL ensures child objects are saved when saving the parent object.
  3. How programmers use a Data Transfer Object to establish relationships between many-to-many entities.

Small Group Time: Lesson 18 Studio (TA Notes)

  1. The studio time for Lesson 18 is focused on working on Assignment #4. Check in with your students to see their progress.
  2. Some students may only be working on the assignment during the in-class work time. While understandable, emphasize to students that this assignment takes time and they should be putting in time outside of class too.
Clone this wiki locally