If you set a parent on the entity, and then query using the that parent as the ancestor in the query, the data is sure to be returned.
There's more info here: http://code.google.com/appengine/docs/java/datastore/queries.html#Ancestor_Queries Sent from my mobile On 19/02/2012, at 1:27 PM, sj <[email protected]> wrote: > I'm using HRD because I want make changes to multiple entities within a > single transaction using entity groups. > > Understand that Non transactional (non ancestor) queries may see all, some, > or none of the results of a previously committed transaction. > > The problem I facing now is: > > After commit an transaction for adding new record to db > Transaction tx = pm.currentTransaction(); > tx.begin(); > pm.makePersistent(object); > tx.commit(); > Follow by query the record committed, sometime it will return result and some > time just return as null > > Query q = pm.newQuery(queryStatement); > CompanyProfile result = (CompanyProfile) q.execute(); > > p/s: When turn off HRD, it work perfectly. > > Any workaround? > > Thanks > > Rgds SJ > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-appengine-java/-/j3l4DzNjDsgJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
