TypeNaming

reactivemongo.api.bson.TypeNaming$
See theTypeNaming companion trait
object TypeNaming

TypeNaming factories

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

object FullName extends TypeNaming

Uses the class fully qualified name (e.g. java.lang.String).

Uses the class fully qualified name (e.g. java.lang.String).

The package naming must be stable (or would require data migrations).

Attributes

Graph
Supertypes
trait Class[_] => String
class Object
trait Matchable
class Any
Self type
object SimpleName extends TypeNaming

Uses the class simple name (e.g. String).

Uses the class simple name (e.g. String).

Attributes

Graph
Supertypes
trait Class[_] => String
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def apply(f: Class[_] => String): TypeNaming

Creates a type naming according the given function.

Creates a type naming according the given function.

import reactivemongo.api.bson.{ MacroConfiguration, TypeNaming }

val configWithCustomNaming = MacroConfiguration(
 typeNaming = TypeNaming { (cls: Class[_]) =>
   "custom:" + cls.getSimpleName
 })

Attributes