Hi there,
If I have many to many relation, how can I map this in
Java?
For example, i have students and courses, every student may have one or more courses, and every course may have one or more students.
When I write a class represent student, I write it this way?
class Student {
private
String name;
private Course course;
......
}
or like this?
class Student {
private String name;
private Vector courses;
......
}
The second seems more logical to me when I search for a specific student, but I don't know if I'm missing something!
Thanks in advance