Interface AuditLogRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<AuditLog,UUID>, org.springframework.data.jpa.repository.JpaRepository<AuditLog,UUID>, org.springframework.data.repository.ListCrudRepository<AuditLog,UUID>, org.springframework.data.repository.ListPagingAndSortingRepository<AuditLog,UUID>, org.springframework.data.repository.PagingAndSortingRepository<AuditLog,UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<AuditLog>, org.springframework.data.repository.Repository<AuditLog,UUID>

public interface AuditLogRepository extends org.springframework.data.jpa.repository.JpaRepository<AuditLog,UUID>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    default List<AuditLog>
     
     

    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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

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

    findAll, findAllById, saveAll

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

    findAll

    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

    • findAllByErrorId

      default List<AuditLog> findAllByErrorId(UUID errorId)
    • findAllByErrorIdOrderByCreatedDesc

      List<AuditLog> findAllByErrorIdOrderByCreatedDesc(UUID errorId)
    • deleteAllByErrorIdIn

      @Modifying @Query(nativeQuery=true, value="DELETE FROM audit_log al WHERE al.error_id in (:errorIds) ") void deleteAllByErrorIdIn(@Param("errorIds") Set<UUID> errorIds)