When I am trying to "reuse" the object to "store" again, I am getting the
silent failure. If I create a new object before the failed store call, the
"store" method passes thro' fine. Does OJB marks the object as "already
used"?
The following code reproduces the issue:
broker = PersistenceBrokerFactory.defaultPersistenceBroker();
broker.beginTransaction();
Test zs = new Test();
System.out.println("<<<1>>>Setting attributes of Test");
zs.setPosX(30);
zs.setPosY(40);
broker.store(zs);
// if I uncomment following statement, the 2nd "store"
// method works fine
// ts = new Test();
System.out.println("<<<2>>>Setting attributes of Test");
zs.setPosX(31);
zs.setPosY(41);
broker.store(zs); // 2nd broker.store method call
broker.commitTransaction();
the second call "broker.store()" fails silently and does not store
data directly.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]