In Hibernate we used to map associated entities following
many-many
one-many
many-one
relations.
Is there any simple example based on which we can understand these relations.
with respect to students and courses.
A student has a one-many relationship with courses.
" one student can join in many courses"
with respect to courses,
A single course can contain many students.
I was seeing a database schema diagram to represent these:
There i come across a term
multiplicity which confuses me:
Student --->*courses
like wise.
What is multiplicity & how we can conclude whether an association is one-many or many-one or many-many.
Your help is highly appreciated.
Regards.