package gc.mda.kcg.domain.enforcement.repository;

import gc.mda.kcg.domain.enforcement.EnforcementRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface EnforcementRecordRepository extends JpaRepository<EnforcementRecord, Long> {
    Page<EnforcementRecord> findAllByOrderByEnforcedAtDesc(Pageable pageable);
    Page<EnforcementRecord> findByViolationType(String violationType, Pageable pageable);
    Page<EnforcementRecord> findByVesselMmsiOrderByEnforcedAtDesc(String vesselMmsi, Pageable pageable);
}
