SimplerEntity

abstract class SimplerEntity<I : Serializable>(var id: I? = null, var version: Int? = null, var createdAt: Instant? = null, var updatedAt: Instant? = null, var deletedAt: Instant? = null) : CRUDEntity<I> (source)

Simpler variant of CRUDEntity

Parameters

I

Id type of the data

Constructors

Link copied to clipboard
fun <I : Serializable> SimplerEntity(id: I? = null, version: Int? = null, createdAt: Instant? = null, updatedAt: Instant? = null, deletedAt: Instant? = null)

Properties

Link copied to clipboard
open override var createdAt: Instant? = null

Instant at which this entity is created

Link copied to clipboard
open override var deletedAt: Instant? = null

Instant at which this entity is logically deleted or null if is not deleted, deleted entities should be treated as if they don't exist at all

Link copied to clipboard
open override var id: I? = null

Identifier of this entity

Link copied to clipboard
open override var updatedAt: Instant? = null

Instant at which this entity is last updated

Link copied to clipboard
open override var version: Int? = null

Version of this entity used in optimistic locking during persistence