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
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>>(val typeName: String, instantProvider: InstantProvider, repository: R, mapper: Mapper) : CRUDService<I, E, E, E, E, R, Mapper>

The simplest variant of CRUDService where models are entities directly