package ee.esutoniagodesu.repository.domain.ac; import ee.esutoniagodesu.domain.ac.table.PersistentAuditEvent; import org.springframework.data.jpa.repository.JpaRepository; import java.time.LocalDateTime; import java.util.List; /** * Spring Data JPA repository for the PersistentAuditEvent entity. */ public interface PersistenceAuditEventRepository extends JpaRepository<PersistentAuditEvent, Integer> { List<PersistentAuditEvent> findByPrincipal(String principal); List<PersistentAuditEvent> findByPrincipalAndAuditEventDateAfter(String principal, LocalDateTime after); List<PersistentAuditEvent> findAllByAuditEventDateBetween(LocalDateTime fromDate, LocalDateTime toDate); }