EntityID

open class EntityID<T : Any>

Class representing a wrapper for a stored identity value of type T.

The class constructor could be useful, for example, if needing to manually provide an identity value to a column default function or when manually inserting into identity columns using any DSL insert function.

Parameters

table

The IdTable that stores the identity value.

id

The value of type T to store.

Samples

org.jetbrains.exposed.sql.tests.shared.entities.EntityTestsData.YTableorg.jetbrains.exposed.sql.tests.shared.dml.InsertTests.testInsertWithPredefinedId

Constructors

Link copied to clipboard
constructor(id: T, table: IdTable<T>)

Properties

Link copied to clipboard
var _value: Any?
Link copied to clipboard
Link copied to clipboard
val value: T

The identity value of type T wrapped by this EntityID instance.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String