SnakeCase

play.api.libs.json.JsonNaming.SnakeCase
object SnakeCase extends JsonNaming

For each class property, use the snake case equivalent to name its column (e.g. fooBar -> foo_bar).

Attributes

Graph
Supertypes
trait JsonNaming
trait String => String
class Object
trait Matchable
class Any
Self type
SnakeCase.type

Members list

Value members

Concrete methods

def apply(property: String): String

Returns the column name for the class property.

Returns the column name for the class property.

Value parameters

property

the name of the case class property

Attributes

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

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.