org.apache.tinkerpop.gremlin.ogm.mappers.scalar.UUIDPropertyMapper.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-gremlin-ogm Show documentation
Show all versions of kotlin-gremlin-ogm Show documentation
The Object Graph Mapping Library for Kotlin and Gremlin
package org.apache.tinkerpop.gremlin.ogm.mappers.scalar
import org.apache.tinkerpop.gremlin.ogm.mappers.PropertyBiMapper
import java.util.*
internal object UUIDPropertyMapper : PropertyBiMapper {
override fun forwardMap(from: UUID) = from.toString()
override fun inverseMap(from: String): UUID = UUID.fromString(from)
override val serializedClass get() = String::class
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy