Back to Exposed

toEntity

docs/api/exposed-dao/org.jetbrains.exposed.v1.dao/to-entity.html

1.2.01.1 KB
Original Source

toEntity

fun <ID : Any, T : Entity<ID>> EntityChange.toEntity(): T?

Returns the actual Entity instance associated with this event, or null if the entity is not found.


fun <ID : Any, T : Entity<ID>> EntityChange.toEntity(klass: EntityClass<ID, T>): T?

Returns the actual Entity instance associated with this event, or null if either its EntityClass type is neither equivalent to nor a subclass of klass, or if the entity is not found.

Generated by Dokka © 2026 Copyright