PropertyNameStrategy¶
interface PropertyNameStrategy
Allows configuring how the DSL generates property paths from
Inheritors¶
Types¶
Default¶
object Default : PropertyNameStrategy
Default implementation of PropertyNameStrategy, which always uses the property name.
Functions¶
pathOf¶
@LowLevelApi
abstract fun pathOf(property: KProperty1<*, *>): Path
Generates the name of a property.
This is used by the DSL to allow configuring how the notation Foo::bar / Bar::baz is converted into a MongoDB path.
For example, an implementation could add support for the KMongo annotation @BsonId to rename the field _id.