Package dev.akif.crud

Interface CRUDDTO<I extends Serializable>

Type Parameters:
I - Id type of the data
All Known Subinterfaces:
SimpleDTO<I,M,E>, SimplerModel<I,E,M>
All Known Implementing Classes:
SimplestEntity

public interface CRUDDTO<I extends Serializable>
Base DTO of an entity
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the instant at which this DTO is created
    id()
    Gets identifier of this DTO
    Gets the instant at which this DTO is last updated
  • Method Details

    • id

      I id()
      Gets identifier of this DTO
      Returns:
      Identifier of this DTO
    • createdAt

      Instant createdAt()
      Gets the instant at which this DTO is created
      Returns:
      The instant at which this DTO is created
    • updatedAt

      Instant updatedAt()
      Gets the instant at which this DTO is last updated
      Returns:
      The instant at which this DTO is last updated