Hi all,
I am using a transaction for storing my entity but I found that after the commit, and not just after the save, linked references of the entity are all null, and from the console I get these messages:
10:31:43.677 [main] ERROR testcase - universe galaxy is null :(
Sep 18, 2014 10:31:43 AM com.orientechnologies.common.log.OLogManager log
WARNING: Record #12:11 references a deleted instance
10:31:43.678 [main] ERROR testcase - universe galaxy is null :(
Sep 18, 2014 10:31:43 AM com.orientechnologies.common.log.OLogManager log
WARNING: Record #12:11 references a deleted instance
where entity Galaxy is linked list in the Entity universe.
It seems to me that transaction is creating temporary references that are removed after the commit, but the entity is not in sync with the db.
The only workaround I found is to reload the entity from the DB (db.load(entity)) after the commit action.
In attach you found the test case if needed, relevant code it's in com.bitdivide.controllers.UniverseController.java