CRUDDTOMapper

Mapper to convert between DTOs, models and entities

Parameters

I

Id type of the data

M

Model type of the data which is a CRUDModel

D

DTO type of the data which is a CRUDDTO

CM

Create model type of the data which is a CRUDCreateModel

UM

Update model type of the data which is a CRUDUpdateModel

CD

Create DTO type of the data which is a CRUDCreateDTO

UD

Update DTO type of the data which is a CRUDUpdateDTO

Functions

Link copied to clipboard
abstract fun createDTOToCreateModel(createDTO: CD, parameters: Parameters): CM

Mapper to convert given create DTO to a create model

Link copied to clipboard
abstract fun modelToDTO(model: M, parameters: Parameters): D

Mapper to convert from model to DTO

Link copied to clipboard
abstract fun updateDTOToUpdateModel(updateDTO: UD, parameters: Parameters): UM

Mapper to convert given update DTO to a update model

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard