CRUDEntity

@MappedSuperclass
abstract class CRUDEntity<I : Serializable>(source)

Base entity of a data model representing its persisted structure

Parameters

I

Id type of the data

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
abstract var createdAt: Instant?

Instant at which this entity is created

Link copied to clipboard
abstract var deletedAt: Instant?

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
abstract var id: I?

Identifier of this entity

Link copied to clipboard
abstract var updatedAt: Instant?

Instant at which this entity is last updated

Link copied to clipboard
abstract var version: Int?

Version of this entity used in optimistic locking during persistence

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard