findOne

fun findOne(id: Any): T?

Finds a record by its identifier.

Return

The record if found, null otherwise.

Parameters

id

The identifier of the record.

Throws

if the class is not annotated with @Table.

if there is an error executing the query.