Custom enum codec #1726
-
Hi |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There isn't a Morphia way to do that yet, no. You can register your codecs with the driver itself (using a |
Beta Was this translation helpful? Give feedback.
There isn't a Morphia way to do that yet, no. You can register your codecs with the driver itself (using a
CodecProvider
) but depending on how it's mapped, Morphia might override that. If the codec is for a specific enum type (rather than just "is it an enum?") then I think you should be fine. 2.3 is introducing an experimental way to introduce codecs but that method is primarily built around mapping entities rather than basic types so I'm not sure that would help you much either.