# findById

fun findById(id: ID): T?

Gets an Entity by its id value.

#### Return

The entity that has this id value, or `null` if no entity was found.

#### Parameters

id

The id value of the entity.

open fun findById(id: EntityID<ID>): T?

Gets an Entity by its EntityID value.

#### Return

The entity that has this wrapped id value, or `null` if no entity was found.

#### Parameters

id

The EntityID value of the entity.

#### Samples

org.jetbrains.exposed.sql.tests.shared.entities.EntityCacheNotUpdatedOnCommitIssue1380.testRegression