SimplerMapper

Simpler variant of CRUDMapper where create/update models and DTOs are just models, which is also a CRUDDTOMapper

Parameters

I

Id type of the entity

E

Entity type of the data which is a SimplerEntity

M

Model type of the data which is a SimplerModel

Functions

Link copied to clipboard
open override fun modelToDTO(model: M): M

Mapper to convert from model to DTO

Inherited functions

Link copied to clipboard
abstract fun createDTOToCreateModel(createDTO: M): M

Mapper to convert given create DTO to a create model

Link copied to clipboard
abstract fun entityToBeCreatedFrom(createModel: M, now: Instant): E

Mapper to convert given model into an entity to be created

Link copied to clipboard
abstract fun entityToModel(entity: E): M

Mapper to convert from given entity to model

Link copied to clipboard
abstract fun updateDTOToUpdateModel(updateDTO: M): M

Mapper to convert given update DTO to a update model

Link copied to clipboard
abstract fun updateEntityWith(updateModel: M, entity: E)

Applies updates contained in given update model to given entity