Hi Cedric,
Thanks for your prompt answer. I am trying to serialize a SortedSet of Tuple:
This is the field I am trying to serialize:
buffer: SortedSet[(Int, TraitType)] = SortedSet.empty[(Int, TraitType)](Ordering.by(_._1))
and I have the Bson handler for TraitType (just a simple trait with 2 int val):
implicit object TraitTypeHandler extends BSONHandler[BSONDocument, TraitTypeHandler] {
def write(message: TraitTypeHandler) = BsonSerializer serialize message
def read(bson: BSONDocument) = (BsonSerializer deserialize bson).asInstanceOf[TraitTypeHandler]
}
But the compiler still throw:
Error:(83, 54) Implicit reactivemongo.bson.BSONReader[scala.collection.immutable.SortedSet] not found for 'buffer'
Any idea please?
Thanks,