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 TypeMethodDescriptionvoiddelete old registers by creation date.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods 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.
-