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.type
object PascalCase.type
object SnakeCase.type

Members list

Concise view

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.

Attributes

property

the name of the case class property

Inherited methods

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

Attributes

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

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