Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Se o cenário tem x objetos, então existem também x desse mesmo cenário #4

Open
guilhermejcgois opened this issue Nov 7, 2015 · 0 comments
Labels

Comments

@guilhermejcgois
Copy link
Contributor

O que está acontecendo é o seguinte: se o cenário possui 4 objetos, então o museu vai conter 4 cenários contendo os 4 objetos, parece que o hibernate está fazendo assim:

MuseologicalObject mo1 = new MuseologicalObject();
MuseologicalObject mo2 = new MuseologicalObject();
MuseologicalObject mo3 = new MuseologicalObject();
MuseologicalObject mo4 = new MuseologicalObject();

Scenario s = new Scenario();
s.addObject(mo1);
s.addObject(mo2);
s.addObject(mo3);
s.addObject(mo4);

Museum m = new Museum();
m.addScenario(s);
m.addScenario(s);
m.addScenario(s);
m.addScenario(s);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant