Package-level declarations

Implementations for simplest variant of CRUD API

Description

This is the package for the simplest variant of CRUD implementations where the only data model is the entity.

This variant is only recommended for very simple data models. Whenever possible, try and use one of the other variants.

Types

Link copied to clipboard
abstract class SimplestController<I : Serializable, E : SimplestEntity<I>, out Mapper : SimplestMapper<I, E>, out R : SimplestRepository<I, E>, out S : SimplestService<I, E, R, Mapper>>(typeName: String, service: S, mapper: Mapper) : CRUDController<I, E, E, E, E, E, E, E, Mapper, Mapper, R, S>

The simplest variant of CRUDController where the only data model is the entity

Link copied to clipboard
abstract class SimplestEntity<I : Serializable>(var id: I? = null, var version: Int? = null, var createdAt: Instant? = null, var updatedAt: Instant? = null, var deletedAt: Instant? = null) : CRUDEntity<I> , CRUDModel<I> , CRUDCreateModel, CRUDUpdateModel, CRUDDTO<I> , CRUDCreateDTO, CRUDUpdateDTO

Simpler variant of CRUDEntity which is also a CRUDModel, a CRUDCreateModel, a CRUDUpdateModel, a CRUDDTO, a CRUDCreateDTO and a CRUDUpdateDTO

Link copied to clipboard
interface SimplestMapper<I : Serializable, E : SimplestEntity<I>> : CRUDMapper<I, E, E, E, E> , CRUDDTOMapper<I, E, E, E, E, E, E>

The simplest variant of CRUDMapper where the only data model is the entity, which is also a CRUDDTOMapper

Link copied to clipboard

The simplest variant of CRUDRepository

Link copied to clipboard
abstract class SimplestService<I : Serializable, E : SimplestEntity<I>, out R : SimplestRepository<I, E>, out Mapper : SimplestMapper<I, E>>(typeName: String, instantProvider: InstantProvider, crudRepository: CRUDRepository<I, E>, mapper: Mapper) : CRUDService<I, E, E, E, E, R, Mapper>

The simplest variant of CRUDService where models are entities directly