Repository

interface Repository<I : ID<*>, E : Entity<*>>

Marker interface to easily identify a domain object as repository.

Functions

Link copied to clipboard
abstract fun deleteById(id: I): E?
Link copied to clipboard
abstract fun findAll(): Array<E>
Link copied to clipboard
abstract fun findById(id: I): E?
Link copied to clipboard
abstract fun save(entity: E)
Link copied to clipboard
abstract fun update(entity: E)