I can now confirm that I do not see this behaviour in production - only on the dev server.
On Nov 4, 9:01 am, Matthew Jaggard <matt...@jaggard.org.uk> wrote: > Sure, thanks Ikai, I should have done this first time around. > > When putting the entity (code from around my app stuck together) > > log("Storing user {0}", us.getCurrentUser().getUserId()); > DatastoreServiceConfig DATASTORE_CONFIG = > DatastoreServiceConfig.Builder.withDeadline(5); > DATASTORE_CONFIG.readPolicy(new ReadPolicy(ReadPolicy.Consistency.EVENTUAL)); > DatastoreService ds = > DatastoreServiceFactory.getDatastoreService(DATASTORE_CONFIG) > Entity e = new Entity("UserForTesting"); > e.setProperty("User", us.getCurrentUser()); > ds.put(e); > > In a separate request (and I am sure that I'm looking at the same > object!) (Dull Java code removed) > > PreparedQuery pq = ds.prepare(new Query("UserForTesting")); > ... > pq.asIterable() > ... > e.getProperties() > ... > log(u.getUserId()); > log('/'); > log(u.getNickname()); > ... > > On 4 November 2011 01:05, Ikai Lan (Google) <ika...@google.com> wrote: > > > > > > > > > Can you post code? It's not clear to me what you're doing. > > -- > > Ikai Lan > > Developer Programs Engineer, Google App Engine > > plus.ikailan.com | twitter.com/ikai > > > On Thu, Nov 3, 2011 at 4:39 PM, Mat Jaggard <matt...@jaggard.org.uk> wrote: > > >> I have an entity that stores a user, however the user gets changed. > >> When I put the entity in to the local datastore, the ID is like this > >> 18530476822013922411 but when I get it out the ID is like this > >> -1403876245. I haven't tried on production. > > >> Any ideas what's causing the issue? Have I done something wrong? > > >> Thanks, > >> Mat. > > >> -- > >> 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. > > > -- > > 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. -- 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.