Hi,
I want to select an entity with it's children (join) after having merged (updated) the same entity within the same service (transaction). I know that merge return the object you updated but this object has the data which has been updated, not all the entity with the data of the database. Additionally, If after merging I execute an select trying to get the entity with all it's children, it return's the object updated only with the data updated (the rest of fields and children entities are null).
is there any way to resolve it? It's mandatory to execute everything in the same transaction because the service have a lot of database operations that must be executed correctly before committing.
Thanks. Regards.
|