Repository

interface Repository<ID : Comparable<ID>, E : Entity<ID>>

Interface for DAO-based repositories.

Type Parameters

ID

The type of the entity ID.

E

The entity type.

Properties

Link copied to clipboard
abstract val dao: EntityClass<ID, E>

The org.jetbrains.exposed.v1.dao.EntityClass for this repository.

Functions

Link copied to clipboard
open fun all(): List<E>

Finds all entities.

Link copied to clipboard
open fun findById(id: ID): E?

Finds an entity by its ID.