New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReflectionUtil.reflectiveToString should be able to handle UUID #441

Closed
philnate opened this Issue Oct 14, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@philnate

philnate commented Oct 14, 2016

If your entity key is of type java.util.UUID it will be encoded on call to GlobalId.value()/toString() to something like: MyEntity/6119540349362061825,-7372191321594927012 while it should be the correct UUID as string. The only solution currently is to use explicit EntityDefinition and handing over some custom field holding the String value of the UUID.

Version is 2.3.0

@bartoszwalacik

This comment has been minimized.

Member

bartoszwalacik commented Oct 14, 2016

Why it should be UUID as string?

@philnate

This comment has been minimized.

philnate commented Oct 17, 2016

I would consider a UUID a rather common-id field. If you now want to look into the plain data stored, you won't see you familiar UUID string, rather than this MyEntity/6119540349362061825,-7372191321594927012 kind of construct.

@bartoszwalacik

This comment has been minimized.

Member

bartoszwalacik commented Oct 18, 2016

right, UUID should be added to well-known-value-types

bartoszwalacik added a commit that referenced this issue Oct 18, 2016

@bartoszwalacik

This comment has been minimized.

Member

bartoszwalacik commented Oct 18, 2016

fixed in v 2.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment