Hi all,
I am trying to perform a cross-group transaction, according to the tutorial that's a call with true as the first parameter to withTransaction:
//true signals cross-group transaction
datastore.withTransaction(true) {
//delete sessions
def sessionKeys = datastore.execute {
select keys
from 'session'
}
log.info "Will attempt to delete ${sessionKeys.size()} sessions."
datastore.delete(sessionKeys)
//delete participants
def participantKeys = datastore.execute {
select keys
from 'participant'
}
log.info "Will attempt to delete ${participantKeys.size()} participants."
datastore.delete(participantKeys)
//delete event
log.info "Will attempt to delete the default event"
}
Unfortunately I get this error:
groovy.lang.MissingMethodException: No signature of method: com.google.appengine.api.datastore.DatastoreServiceImpl.withTransaction() is applicable for argument types: (java.lang.Boolean, events$_delete_closure1) values: [true, events$_delete_closure1@15ca4d6b]
So it seems the implementation is simply missing. I am running with gaelyk 1.2, the current final out there.
Any ideas what could be wrong?
Thx
Sven