Package-level declarations

Base implementations for CRUD API

Description

This is the base package for CRUD implementations with most functionality.

Types

Link copied to clipboard
@Validated
abstract class CRUDController<I : Serializable, E : CRUDEntity<I>, M : CRUDModel<I>, out D : CRUDDTO<I>, CM : CRUDCreateModel, UM : CRUDUpdateModel, in CD : CRUDCreateDTO, in UD : CRUDUpdateDTO, out Mapper : CRUDMapper<I, E, M, CM, UM>, out DTOMapper : CRUDDTOMapper<I, M, D, CM, UM, CD, UD>, out R : CRUDRepository<I, E>, out S : CRUDService<I, E, M, CM, UM, R, Mapper>>(typeName: String, service: S, mapper: DTOMapper)

Base implementation of a controller for API layer providing CRUD operations

Link copied to clipboard
interface CRUDCreateDTO

Base DTO that contains required data to create a new entity

Link copied to clipboard
interface CRUDCreateModel

Base model that contains required data to create a new entity

Link copied to clipboard
interface CRUDDTO<out I : Serializable>

Base DTO of an entity

Link copied to clipboard

Mapper to convert between DTOs, models and entities

Link copied to clipboard
@MappedSuperclass
abstract class CRUDEntity<I : Serializable>

Base entity of a data model representing its persisted structure

Link copied to clipboard

Mapper to convert between models and entities

Link copied to clipboard
interface CRUDModel<out I : Serializable>

Base model of a data model

Link copied to clipboard
@NoRepositoryBean
interface CRUDRepository<I : Serializable, E : CRUDEntity<I>> : Repository<E, I>

Base interface of a CRUD repository for data layer

Link copied to clipboard
abstract class CRUDService<I : Serializable, E : CRUDEntity<I>, out M : CRUDModel<I>, in CM : CRUDCreateModel, in UM : CRUDUpdateModel, out R : CRUDRepository<I, E>, out Mapper : CRUDMapper<I, E, M, CM, UM>>(val typeName: String, instantProvider: InstantProvider, repository: R, mapper: Mapper)

Base implementation of a CRUD service for business layer

Link copied to clipboard
interface CRUDUpdateDTO

Base DTO that contains required data to update an existing entity

Link copied to clipboard
interface CRUDUpdateModel

Base model that contains required data to update an existing entity