EntityRepository

interface EntityRepository<T, I>

defines the interface that should be provided by all repositories dealing with a single Entity.

Functions

Link copied to clipboard
abstract suspend fun addOrUpdate(entity: T): T

adds or updates an entity

Link copied to clipboard
abstract suspend fun delete(entity: T)

deletes an entity

Link copied to clipboard
abstract suspend fun load(id: I): T

loads an entity

Inheritors

Link copied to clipboard
Link copied to clipboard