Hello All,

Is it ok to read the object outside of the transaction block, and then
modify and save the object in the transaction block

Or, should we always read and write the object with in the transaction
block for the transactions to work properly

      private void prepare(Key<Trivial> tk) { final Trivial trivNew =
ofy().transactionless().load().key(tk).now(); Key<Trivial> k =
ofy().transact(new Work<Key<Trivial>>() { @Override public Key<Trivial>
run() { trivNew.setSomeString("hellofoo"); return
ofy().save().entity(trivNew).now(); } }); }
*www.VeersoftSolutions.com <http://www.VeersoftSolutions.com>*
*www.GainERP.com <https://www.gainerp.com>*
*Accounting/Inventory/Orders on Google Cloud Platform and Mobile*

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to