HI,
I'm trying to implement a generic DAO with find, insert and update methods.
The problem is I don't know what is the json formater of generic class, and this code can't work :
def find(uuid:UUID): Future[Option[A]] =
collection.find(Json.obj("uuid" -> uuid)).one[A]
I got this error :
No Json deserializer found for type A. Try to implement an implicit Reads or Format for this type.
collection.find(Json.obj("uuid" -> uuid)).one[A]
Is there a trick to do that ? May be Inject a formater ...
Thanks in advance