Hi, I think it is a bug around transaction of JDO/SDK1.3.1.
It does not occurs with SDK1.3.0
Entity entityA = pm.getObjectById(Entity.class, keyA);
entityA.setDoubleProperty(Math.random());
tx = pm.currentTransaction();
tx.begin();
// This makePersistent throws javax.jdo.JDOException:
//
On 2月11日, 午後4:35, yjun hu itswa...@gmail.com wrote:
it exists on sdk1.3.0 too.
That code have worked well with 1.3.0.
I had updated SDK from 1.3.0 to 1.3.1, then the Exception occurred.
After that, I changed back to 1.3.0 and re-deploy, then the Exception
stopped.
(Of course I used the same
...@google.com
wrote:
Assuming a ClassA object with the specified id already exists, the code
you've posted works fine for me. Could you put together a complete example
that demonstrates the unexpected behavior?
Thanks,
Max
On Wed, Feb 10, 2010 at 7:49 PM, vori vori...@gmail.com wrote
Is it a bug on JDO of SDK 1.3.1?
--
PersistentManager pm = PMF.get().getPersistenceManager();;
ClassA classA = pm.getObjectById(ClassA.class, id);
ClassB classB = new ClassB();
Transaction tx = pm.currentTransaction();
tx.begin();
pm.makePersistent(classB);
tx.commit(); // It throws