Need help What would be the best way to serialize and deserialize the ObjectId of MongoDB entity #8940
Unanswered
kamalbhatia528
asked this question in
Q&A
Replies: 1 comment
-
I am getting this error when I am directly calling the get method Cannot find serializer: interface io.micronaut.data.document.serde.IdSerializer and If I call the save method first on repository I am not getting this error , serialization is happening proper, Please help why its happening |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have one entity for mongodb, I want to serialize and deserialize the Object ID, Please help me what would be the best way to acheive that, TIA
@MappedEntity
@AllArgsConstructor
@Serdeable
@DaTa
@introspected
public class Entity{
@id
@notblank
@GeneratedValue
private ObjectId id;
}
Beta Was this translation helpful? Give feedback.
All reactions