kmongo / org.litote.kmongo.id / ObjectIdToStringGenerator

ObjectIdToStringGenerator

object ObjectIdToStringGenerator : IdGenerator (source)

ObjectId based String generator.

Properties

idClass

The class of the id.

val idClass: KClass<out Id<*>>

wrappedIdClass

The class of the wrapped id.

val wrappedIdClass: KClass<out Any>

Functions

generateNewId

Generate a new id.

fun <T> generateNewId(): StringId<T>

newStringId

Generates a new StringId.

fun <T> newStringId(): StringId<T>