FieldNaming

reactivemongo.api.bson.FieldNaming
See theFieldNaming companion object
trait FieldNaming extends String => String

Naming strategy, to map each class property to the corresponding field.

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

def initCfg(naming: FieldNaming): MacroConfiguration =
 MacroConfiguration(fieldNaming = naming)

Attributes

See also
Companion
object
Graph
Supertypes
trait String => String
class Object
trait Matchable
class Any
Known subtypes
object Identity
object PascalCase
object SnakeCase

Members list

Value members

Abstract 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
override def 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.

Definition Classes
Function1 -> Any
Inherited from:
Function1