-
Couldn't load subscription status.
- Fork 60
Lesson 16 (ORM Part 1)
Courtney Frey edited this page Apr 14, 2022
·
2 revisions
- What object-relational mapping is.
- How to connect a Spring application to a MySQL database.
- How to create an entity class.
- How to create a repository interface.
- Check with your course manager for any additional announcements.
- Assignment #4 is open and students can start working on it!
- Welcome to Day 25!
- Work days for Assignment 4 coming Days 28-31
- Review the relationship between Java classes/objects and database tables/rows.
- The students went through a number of different steps to get their Spring apps going and storing events and event categories. Review each setup step and why it matters.
- Creating a new schema and add a new user in MySQL Workbench.
- Add the necessary dependencies in IntelliJ.
- Add the user info for the schema in MySQL into
application.properties.
- Review what an entity class is and what it becomes in a relational database.
- Review what a repository is and what it becomes in a relational database.
- Review the studio!
- If students didn't finish the exercises, they can check out the
add-persistent-categorybranch of theircoding-eventsrepo. If they do not have that branch in their repository, they need to fetch from the upstream and merge into their repository.- To do so, they need to make sure the upstream is set up with
git remote -vand double check that they are onmaster. - With the upstream present, run
git fetch upstream - Then merge the upstream into the forked repo with
git merge upstream/master.
- To do so, they need to make sure the upstream is set up with
- An
AbstractEntityis a new concept. This is a good chance to share some examples of why you, as a developer, may use anAbstractEntityin your work. - Check in with your students!