# 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.v1.tests.shared.entities.EntityTestsData.YTableorg.jetbrains.exposed.v1.tests.shared.dml.InsertTests.testInsertWithPredefinedId

## Constructors

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

## Properties

_value
Link copied to clipboard
var _value: Any?
table
Link copied to clipboard
val table: IdTable<T>
value
Link copied to clipboard
val value: T

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

## Functions

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