All,
I'm driving nuts. Is there definitely a position for the lock on ODMG ?
I explain, sometimes our updates are done if the lock on an object is done
before its affectations and sometimes it has to de done after.
I 'm really confused. I don't explain that. Our developers don't also.
Ex :
JdoClient client = new JdoClient();
Client.setId(10);
client.setName("Toto");
client.setproduct_FK(12);
Tx.lock(client, Write); <===========
And sometimes we have to do that :
JdoClient client = new JdoClient();
Client.setId(10);
Tx.lock(client, Write); <===========
client.setName("Toto");
client.setproduct_FK(12);
It seems that it is different between an update and a creation.
A lock should be before for the update and after for the creation.
This is completely weird isn't it ??
Tell me if it is completely stupid...????