When your primary key is more than just an id. Make your data model reflect the business.
make it so that Student has oneToMany relationship with Enrollment and at the same time Course has also oneToMany relationship with Enrollment
I'll stick with this simple example for now. But thanks for your suggestion! I might pick it up in later tutorials! Keep the ideas coming!
make it so that Student has oneToMany relationship with Enrollment and at the same time Course has also oneToMany relationship with Enrollment
I'll stick with this simple example for now. But thanks for your suggestion! I might pick it up in later tutorials! Keep the ideas coming!