Kotlin #12462
davidmoshal
started this conversation in
General
Kotlin
#12462
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Starting a discussion on Kotlin, just to save anyone a few hours figuring out these magical incantations.
Magical incantation 1:
Deserializing classes that don't have an empty constructor
eg:
Solution:
FAIL_ON_UNKNOWN_PROPERTIES needs to be suppressed for the
@metadata
document property.Note: conventions.SetEntityManager appears to be undocumented (ie: not documented on the RavenDB site).
Magical Incantation 2:
Getting deserialization to work in Enterprise Java CDI containers (eg Quarkus).
For some reason the internal Class.forName(name) fails in CDI containers, but if supplied via a configuration setting, seems to work:
So, the whole enchilada is:
Anyone else have magical incantations for Kotlin+RavenDB?
Beta Was this translation helpful? Give feedback.
All reactions