You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an entity that hibernate loads depending on a graph.
Sometimes I need one field, sometimes another.
An entity has some nesting, even a collection within a collection.
I need not to transfer fields to dto that are not initialized.
I see three solutions, but I don't know how to implement them:
Determine that this is not a loaded object and skip it.
Send to the mapper a list of field names to be skipped.
Catch an error and assign null.
At the first level, it is clear how to skip fields, but at the second or third level, and even in an object that is in the collection...
The text was updated successfully, but these errors were encountered:
I have an entity that hibernate loads depending on a graph.
Sometimes I need one field, sometimes another.
An entity has some nesting, even a collection within a collection.
I need not to transfer fields to dto that are not initialized.
I see three solutions, but I don't know how to implement them:
At the first level, it is clear how to skip fields, but at the second or third level, and even in an object that is in the collection...
The text was updated successfully, but these errors were encountered: