-
I just managed to get my project to compile with Nitrite, however I immediately came across the following exception
Does that mean every object that is supposed to be stored via an However, considering that I seem to be able to save a document with an embedded custom class without issues, I would assume that should not be the case and Nitrate still handles serialisation on its own, right? What would be the issue then here? Did I miss anything? Thanks. For the sake of good order, here the trace
|
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 4 replies
-
Not every object should implement // initialization using builder
Nitrite db = Nitrite.builder()
.loadModule(storeModule)
.loadModule(new JacksonMapperModule()) // this enables jackson serialization of object without using Mappable
.openOrCreate("user", "password"); You need to include nitrite-jackson-mapper in your dependency for this. If you don't want to include jackson dependency in your project, you should implement |
Beta Was this translation helpful? Give feedback.
Not every object should implement
Mappable
, if you use jackson module to serialize the object.You need to include nitrite-jackson-mapper in your dependency for this.
If you don't want to include jackson dependency in your project, you should implement
Mappable
. And also, mappable implementation is faster than jackson serialization for obvious reason.