vendredi 3 juillet 2015

Lazy Loading. Both entities managed?

I have a simple question. I know that lazy loading beans, that the partner entity in the realtion will be loaded when needed. That only works when the entity that "has" the other entity is managed.

My friend said: The partner entity has to be managed too!

My question: Do both entities in a relation need to be managed for lazy loading, or just the owner of the relationship?

Aucun commentaire:

Enregistrer un commentaire