I have issues for an update, when i get a returned object, the child does not come as they are lazy fetched.
Is it possible to force eager fetch for entities, eventhough they are automatically generated as lazy? (Or even take control over the Lazy fetch)
Thank you very much!
The default fetch type for relationships are by default
LAZY. That is actually not supported to change it. This ensure same and uniform behavior for all entities.
LAZY doesn’t load the relationships unless explicitly “asked for” via getter. So it should not be an issue. Can you explain your case ?
EAGER type, loading things from database is expensive in terms of the time. It takes to load all that information into java object AND keep them in memory. Ans it can be crazy if one of the relationships points to an object that also has 10 relationships …