org.jetbrains.exposed.dao.DaoEntityIDFactory.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of exposed-dao Show documentation
Show all versions of exposed-dao Show documentation
Exposed, an ORM framework for Kotlin
package org.jetbrains.exposed.dao
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.EntityIDFactory
import org.jetbrains.exposed.dao.id.IdTable
/**
* Class representing a producer of [EntityID] instances, which are managed and cached by their respective
* [EntityClass] instances using a data access object pattern.
*/
class DaoEntityIDFactory : EntityIDFactory {
override fun > createEntityID(value: T, table: IdTable): EntityID {
return DaoEntityID(value, table)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy