Hello all, I can´t delete records of a table
I'm using this code:
PersistenceManager pm =
PersistenceManagerHelper.getPersistenceManager();
Transaction tx = pm.currentTransaction();
tx.begin();
Extent ex = pm.getExtent(Robot.class, true);
Iterator iter = ex.iterator();
while (iter.hasNext())
{
Robot obj = (Robot)iter.next();
pm.deletePersistent(obj);
tx.commit();
}
And always delete only two records after I get this message in the
log:
Transaction is not active. You either need to define a transaction
around this, or run your PersistenceManagerFactory with
'NontransactionalRead' and 'NontransactionalWrite' set to 'true'
Anyone can help me, please?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.