package br.com.menuber.repository; import br.com.menuber.domain.PersistentAuditEvent; import org.joda.time.LocalDateTime; import org.springframework.data.mongodb.repository.MongoRepository; import java.util.List; /** * Spring Data MongoDB repository for the PersistentAuditEvent entity. */ public interface PersistenceAuditEventRepository extends MongoRepository<PersistentAuditEvent, String> { List<PersistentAuditEvent> findByPrincipal(String principal); List<PersistentAuditEvent> findByPrincipalAndAuditEventDateAfter(String principal, LocalDateTime after); List<PersistentAuditEvent> findAllByAuditEventDateBetween(LocalDateTime fromDate, LocalDateTime toDate); }