Interface DeviceLoginHistoricRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<DeviceLoginHistoric,Integer>, org.springframework.data.jpa.repository.JpaRepository<DeviceLoginHistoric,Integer>, org.springframework.data.repository.PagingAndSortingRepository<DeviceLoginHistoric,Integer>, org.springframework.data.repository.query.QueryByExampleExecutor<DeviceLoginHistoric>, org.springframework.data.repository.Repository<DeviceLoginHistoric,Integer>

@Repository public interface DeviceLoginHistoricRepository extends org.springframework.data.jpa.repository.JpaRepository<DeviceLoginHistoric,Integer>
Repository for queries for device login historic.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete old registers by creation date.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • deleteDeviceLoginHistoricByCreationDate

      @Modifying @Query("delete from DeviceLoginHistoric d where d.creationDate < :date") void deleteDeviceLoginHistoricByCreationDate(@Param("date") ZonedDateTime date)
      delete old registers by creation date.
      Parameters:
      date - for delete.