When I view using the datastore viewer, I can only see the e-mail
address of the user (plus the ID of the entity and the encoded key +
write ops).

The User I'm saving is the one that I get from
userService.getCurrentUser() on the dev server and I'm the comparing
the difference in ID from user.getUserId() before and after saving
to/loading from the datastore.

On 4 November 2011 18:30, Ikai Lan (Google) <ika...@google.com> wrote:
> Yeah, that's weird. When you look at http://localhost:8080/_ah/admin, which
> user ID is it?
> Also ... are those the IDs the dev server is giving you? The dev_server
> should be giving pretty simple IDs, if I'm not mistaken.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> plus.ikailan.com | twitter.com/ikai
>
>
> On Fri, Nov 4, 2011 at 7:35 AM, Mat Jaggard <matt...@jaggard.org.uk> wrote:
>>
>> 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.
>>
>
> --
> 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.

Reply via email to