UuidIdentifiedAndModificationTimestampAware

Properties

Link copied to clipboard
abstract var createdAt: Instant
Link copied to clipboard
abstract val entityClass: KClass<E>
Link copied to clipboard
abstract var id: UUID
Link copied to clipboard
abstract val properties: Map<String, Any?>
Link copied to clipboard
abstract var updatedAt: Instant

Functions

Link copied to clipboard
abstract fun copy(): E
Link copied to clipboard
abstract fun delete(): Int
Link copied to clipboard
abstract fun discardChanges()
Link copied to clipboard
abstract operator override fun equals(other: Any?): Boolean
Link copied to clipboard
abstract fun flushChanges(): Int
Link copied to clipboard
abstract operator fun get(name: String): Any?
Link copied to clipboard
abstract override fun hashCode(): Int
Link copied to clipboard
inline fun <T> Entity<*>.lazyFetch(name: String, loader: () -> T): T
Link copied to clipboard
abstract operator fun set(name: String, value: Any?)
Link copied to clipboard
open fun setCreatedAt()

Sets createdAt to the current instant.

Link copied to clipboard
open fun setId()

Sets id to random UUID.

Link copied to clipboard
open fun setUpdatedAt()

Sets updatedAt to the current instant.

Link copied to clipboard
abstract override fun toString(): String