-
Notifications
You must be signed in to change notification settings - Fork 59
Lesson 18 (ORM Part 3)
Courtney Frey edited this page Apr 15, 2022
·
2 revisions
- How to build persistent model classes with one-to-one and many-to-many relationships.
- What a composite key is.
- What a join table is.
- How to use different annotations such as
@OneToOne
and@ManyToMany
.
- After Class 18, students have all of the materials they need to complete the assignment.
- Check with your course manager for any additional announcements.
- Assignment 4 is due soon!
- 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
- Review the one-to-many and many-to-one relationships in preparation to discuss one-to-one and many-to-many relationships.
- Go over what the
cascade
parameter does in different scenarios and howcascade = CascadeType.ALL
ensures child objects are saved when saving the parent object. - How programmers use a Data Transfer Object to establish relationships between many-to-many entities.
- The studio time for Lesson 18 is focused on working on Assignment #4. Check in with your students to see their progress.
- 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.