Package dev.akif.crud

Interface CRUDCreateModel<I extends Serializable,E extends CRUDEntity<I,E>>

Type Parameters:
I - Id type of the data
E - 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 Type
    Method
    Description
    Mapper to convert this model into an entity to be created
  • Method Details

    • withFieldsToCreate

      E withFieldsToCreate(Instant now)
      Mapper to convert this model into an entity to be created
      Parameters:
      now - Current instant
      Returns:
      Entity to be created, built from this model