Returns the name for the given type.
Returns the name for the given type.
import scala.reflect.ClassTag import reactivemongo.api.bson.TypeNaming def foo[T](n: TypeNaming)(implicit ct: ClassTag[T]): String = n(ct.runtimeClass)
Composes the naming with the given function f
,
applied on the first result.
Composes the naming with the given function f
,
applied on the first result.
import reactivemongo.api.bson.TypeNaming val tpeNaming: TypeNaming = TypeNaming.SimpleName.andThen(_.toLowerCase)
Naming strategy, to map each class to a discriminator value.
MacroConfiguration