CRUDMapper
interface CRUDMapper<I : Serializable, E : CRUDEntity<I, E>, out M : CRUDModel<I>, in CM : CRUDCreateModel, in UM : CRUDUpdateModel>(source)
Mapper to convert between models and entities
Parameters
I
Id type of the data
E
Entity type of the data which is a CRUDEntity
M
Model type of the data which is a CRUDModel
CM
Create model type of the data which is a CRUDCreateModel
UM
Update model type of the data which is a CRUDUpdateModel
Functions
Link copied to clipboard
Mapper to convert given model into an entity to be created
Link copied to clipboard
Mapper to convert from given entity to model
Link copied to clipboard
Applies updates contained in given update model to given entity