JsonNaming

play.api.libs.json.JsonNaming
See theJsonNaming companion trait
object JsonNaming

Naming companion

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
JsonNaming.type

Members list

Type members

Classlikes

object Identity extends JsonNaming

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

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

Attributes

Supertypes
trait JsonNaming
trait String => String
class Object
trait Matchable
class Any
Self type
Identity.type
object PascalCase extends JsonNaming

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

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

Attributes

Supertypes
trait JsonNaming
trait String => String
class Object
trait Matchable
class Any
Self type
PascalCase.type
object SnakeCase extends JsonNaming

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

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

Attributes

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

Value members

Concrete methods

def apply(transformation: String => String): JsonNaming

Naming using a custom transformation function.

Naming using a custom transformation function.

Attributes