Scala pickle case class with objectId

105 Views Asked by At
case class Test(test: ObjectId)
val test = Test(new ObjectId)
test.pickle.value

but then I got error:

error: Cannot generate a pickler for Test. Recompile with -Xlog-implicits for details
              test.pickle

any suggestions how to deal with such types ? Thanks

0

There are 0 best solutions below