object FieldNaming
Naming companion
- Companion:
- class
Type members
Classlikes
For each class property, use the name as is for its field (e.g. fooBar -> fooBar).
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)
For each class property, use the pascal case equivalent to name its field (e.g. fooBar -> FooBar).
For each class property, use the pascal case equivalent to name its field (e.g. fooBar -> FooBar).
import reactivemongo.api.bson.{ FieldNaming, MacroConfiguration }
val cfg: MacroConfiguration =
MacroConfiguration(fieldNaming = FieldNaming.PascalCase)
For each class property, use the snake case equivalent to name its field (e.g. fooBar -> foo_bar).
For each class property, use the snake case equivalent to name its field (e.g. fooBar -> foo_bar).
import reactivemongo.api.bson.{ FieldNaming, MacroConfiguration }
val cfg: MacroConfiguration =
MacroConfiguration(fieldNaming = FieldNaming.SnakeCase)