public interface EventRepository extends org.springframework.data.repository.PagingAndSortingRepository<EventEntity,GUID>
Modifier and Type | Method and Description |
---|---|
void |
deleteByCreatedOnBefore(java.time.LocalDateTime createdOn) |
org.springframework.data.domain.Page<EventEntity> |
findByShopGuid(GUID shopGuid,
org.springframework.data.domain.Pageable pageable) |
org.springframework.data.domain.Page<EventEntity> findByShopGuid(GUID shopGuid, org.springframework.data.domain.Pageable pageable)
@Modifying @Query(value="delete from EventEntity e where e.createdOn <= ?1") void deleteByCreatedOnBefore(java.time.LocalDateTime createdOn)