Package dev.akif.crud
Interface CRUDCreateDTO<I extends Serializable,E extends CRUDEntity<I,E>,CM extends CRUDCreateModel<I,E>>
- Type Parameters:
I
- Id type of the dataE
- Entity type of the dataCM
- Create model type of the data
- All Known Subinterfaces:
SimpleDTO<I,
,M, E> SimplerModel<I,
E, M>
- All Known Implementing Classes:
SimplestEntity
public interface CRUDCreateDTO<I extends Serializable,E extends CRUDEntity<I,E>,CM extends CRUDCreateModel<I,E>>
Base DTO that contains required data to create a new entity
-
Method Summary
Modifier and TypeMethodDescriptionMapper to convert this create DTO into a create model
-
Method Details
-
withFieldsToCreate
CM withFieldsToCreate()Mapper to convert this create DTO into a create model- Returns:
- Create model built from this create DTO
-