You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can create an entity, but id is not on the specified standard representation: BinData(3, "DEvqK/vTeQUtpMdfG8LrmQ==").
But other than creating a new entity, operations such as mongoCollection.deleteOneById(clientSession, entity.id) or other operations (find etc.) fail with com.fasterxml.jackson.databind.JsonMappingException: unsupported id type 7e4e1aa4-4a53-482a-bb43-91ac7588740b (example UUID).
Am I doing it wrong or is there no support for UUID entity ids - and how come my uuidRepresentation configuration does not work (i.e. the id is still using version 3 as shown above)?
The text was updated successfully, but these errors were encountered:
rvplauborg
changed the title
Custom ID types not working
UUID entity id type not working
Dec 9, 2021
rvplauborg
changed the title
UUID entity id type not working
UUID entity id type not working (Jackson, custom ID type)
Dec 11, 2021
rvplauborg
changed the title
UUID entity id type not working (Jackson, custom ID type)
UUID entity id not working (Jackson)
Dec 11, 2021
The way I fixed the issue that it was still using version 3 instead of standard was by also setting the following: KMongoJacksonFeature.setUUIDRepresentation(UuidRepresentation.STANDARD)
zigzago
changed the title
UUID entity id not working (Jackson)
Custom Id<*> with UUID implementation not supported (Jackson)
Apr 8, 2022
I change the title of the issue. What is not supported is Id<*> implementation with UUID (related to "unsupported id type" error message). Direct UUID _id type declaration is supported.
Hi,
I cannot get a proper setup working using UUID for entity ids with KMongo. Here are some relevant snippets from my setup:
I can create an entity, but id is not on the specified standard representation:
BinData(3, "DEvqK/vTeQUtpMdfG8LrmQ==")
.But other than creating a new entity, operations such as
mongoCollection.deleteOneById(clientSession, entity.id)
or other operations (find etc.) fail withcom.fasterxml.jackson.databind.JsonMappingException: unsupported id type 7e4e1aa4-4a53-482a-bb43-91ac7588740b
(example UUID).Am I doing it wrong or is there no support for UUID entity ids - and how come my
uuidRepresentation
configuration does not work (i.e. the id is still using version 3 as shown above)?The text was updated successfully, but these errors were encountered: