Hello,
I have two objects linked, so A with a one to many collection and in B I have a many to one representing
the A reference.
In the same transaction, I persist a B instance and try in a select request to get my A objects with their
B collections filled.
I have the following query with a simple join
Code:
String query = "from Process as p left join p.operations ";
I got my A collection but the be collection inside B object is empty.
On the other hand if I commit the transaction between the insertion and the select, everything works fine.
I tried to change transaction isolation properties with read_uncommit but without success.
I just want to know why does this happen ?