mercredi 25 février 2015

Joins with LAZY mapping

Simple question that I could not find answer yet.


If I have entity A that has a relationship with B and C with a CascadeType.ALL. And then I modify A, and save it.


Then in the query, Hibernate does the join table with B and C, if those mappings are declared as LAZY?. Entities B and C has not change at all, so we should have the Hibernate proxy for those entities.


But when I see the log file, I can see "left outer join" for between A with B and C.


I´m having an issue in MySQL because max number of joins(61) allowed.


Regards.


Aucun commentaire:

Enregistrer un commentaire