org.jetbrains.exposed.dao.DaoEntityID.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.IdTable
import org.jetbrains.exposed.sql.transactions.TransactionManager
/**
* Class representing a wrapper for a stored identity value of type [T], which is managed and cached
* by an [EntityClass] using a data access object pattern.
*/
class DaoEntityID>(id: T?, table: IdTable) : EntityID(table, id) {
override fun invokeOnNoValue() {
TransactionManager.current().entityCache.flushInserts(table)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy