I'm a bit confused:
Following some examples and looking at the API of the DatastoreService
it seems to be required to use the overloaded methods whenever transactional
behavior is required.
In other words: The current transaction needs to be specified on put() und
get() methods like this:

Transaction txn = datastore.beginTransaction();
// ....
Entity employee = datastore.get(txn, employeeKey);
employee.setProperty("vacationDays", 10);
datastore.put(txn, employee);
txn.commit();

But when looking at the official Google docs, there seems to be no need for
specifying the
transaction explicitly:
http://code.google.com/intl/de-DE/appengine/docs/java/datastore/transactions.html
?

Can someone explain this?  Is this an issue with "implicit transaction"
behavior? How does it work?

Thanks a lot
Mos

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to