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