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

Native UUID datatype support [DATAMONGO-2389] #3248

Open
spring-projects-issues opened this issue Oct 11, 2019 · 1 comment
Open

Native UUID datatype support [DATAMONGO-2389] #3248

spring-projects-issues opened this issue Oct 11, 2019 · 1 comment

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Oct 11, 2019

Sola opened DATAMONGO-2389 and commented

Since it's possible to have a native UUID datatype in MongoDB:

rs0:PRIMARY> db.test.insert({"_id": UUID()})
WriteResult({ "nInserted" : 1 })
rs0:PRIMARY> db.test.find()
{ "_id" : UUID("e4055c96-c10c-48d9-8797-95d665c60c0e") }
rs0:PRIMARY> db.test.find({'_id': UUID('e4055c96-c10c-48d9-8797-95d665c60c0e')})                                                                                                                                   { "_id" : UUID("e4055c96-c10c-48d9-8797-95d665c60c0e") } 

Is it possible to make a java.lang.UUID mapping directly to MongoDB's UUID datatype?

The reason behind this is querying BinData when you only have the hex form of UUID available inside mongo shell is very painful.


Affects: 2.2 GA (Moore)

1 votes, 3 watchers

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Oct 11, 2019

Christoph Strobl commented

We need to check with the driver team at MongoDB as they might have something cooking

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