I'm doing a pre-registration system, and I came across a problem that bothers me a bit:
As you can see in the picture, Curso
has Disciplinas
and Estudantes
, only that each student needs to know in which Disciplinas
he is enrolled, and each Disciplina
needs to know which Estudantes
are enrolled in it.
I've already thought of Estudante
having a list of Disciplina
or Disciplina
having a list of Estudante
, and also the two. The big problem is that the ways I managed to think were a bit coupled.
Could anyone give a suggestion of what I can do, or a Design Pattern
that solves this?