Thursday, March 31, 2011

Re: Few problems with creating/ updating entities with requestfactory and appengine

I'm don't know appengine, but if you want update something you must do in a transaction scope. See Jpa transactions

Juan

2011/3/31 Marcin Misiewicz <misqu23@gmail.com>
Hi Juan

1. I added @Basic annotation with fetch type eager and it works. Till now I was pretty sure that embedded object are always fetched and I thought that this problem is related to the appengine.  

2. Here is my persistence.xml file. Do you suggest that I should use transactions to get it working ? I'm using appengine for the first time and this app is actually testing app, I'm testing the  new api Editors, RF. That's why i don't know much about appengine and its datastore.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<persistence-unit name="transactions-optional">
<provider>org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider</provider>
<properties>
<property name="datanucleus.NontransactionalRead" value="true" />
<property name="datanucleus.NontransactionalWrite" value="true" />
<property name="datanucleus.ConnectionURL" value="appengine" />
</properties>
</persistence-unit>
</persistence>           

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment