[appengine-java] Re: makePersistent failing every second time since server restart

2012-02-07 Thread Nichole
Hi John, You just need to read the entity group references above and it will be clearer. Appengine is a distributed datastore in which the files and entities within are not necessarily co-located. If you need to retrieve more than one type of entity within a transaction, those entities need to h

Re: [appengine-java] Re: makePersistent failing every second time since server restart

2012-02-02 Thread John Goche
NIchole, Thank you for your feedback, but how do I change my code so that I have this entity group you are mentioning? I am using the HR datastore. And how did you get to this conclusion? I am fetching every store from the datastore, detaching everything after making it persistent, and always tou

[appengine-java] Re: makePersistent failing every second time since server restart

2012-02-02 Thread Nichole
you need an entity group http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html or cross group transactions if you are using the HR datastore: http://code.google.com/appengine/docs/python/datastore/transactions.html or If you are not on the HR datastore and need

Re: [appengine-java] Re: makePersistent failing every second time since server restart

2012-02-01 Thread John Goche
Hi, I've raised the issue with a test case in google's issue tracker: http://code.google.com/p/datanucleus-appengine/issues/detail?id=259 I am hoping someone can kindly have a look at it and get back to me as I cannot see how I can make use of JDO on app engine without this fixed. In the meant

[appengine-java] Re: makePersistent failing every second time since server restart

2012-02-01 Thread datanucleus
So it can't find a related Entity. You could obviously use the DB viewer (or a low level API call) to check whether it is present (with that Key), and look in the log for whether it was PUT. Can't speak for Google but I'm sure nobody has interest in private code, though I'm sure that it ought to b