Identity

reactivemongo.api.bson.FieldNaming.Identity
object Identity extends FieldNaming

For each class property, use the name as is for its field (e.g. fooBar -> fooBar).

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

val cfg: MacroConfiguration =
 MacroConfiguration(fieldNaming = FieldNaming.Identity)

Attributes

Graph
Supertypes
trait FieldNaming
trait String => String
class Object
trait Matchable
class Any
Self type
Identity.type

Members list

Value members

Concrete methods

def apply(property: String): String

Returns the field name for the class property.

Returns the field name for the class property.

Value parameters

property

the name of the case class property

Attributes

Inherited methods

def andThen[A](g: String => A): String => A

Attributes

Inherited from:
Function1
def compose[A](g: A => String): A => String

Attributes

Inherited from:
Function1

Concrete fields

override val toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.