Skip to content
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
Closed

ReflectionUtil.reflectiveToString should be able to handle UUID #441

philnate opened this issue Oct 14, 2016 · 4 comments
Labels

Comments

@philnate
Copy link

@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
Copy link
Member

@bartoszwalacik bartoszwalacik commented Oct 14, 2016

Why it should be UUID as string?

@philnate
Copy link
Author

@philnate 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
Copy link
Member

@bartoszwalacik 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
Copy link
Member

@bartoszwalacik 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants