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

import gc.mda.kcg.domain.fleet.LabelSession;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface LabelSessionRepository extends JpaRepository<LabelSession, Long> {
    Page<LabelSession> findByStatusOrderByCreatedAtDesc(String status, Pageable pageable);
    Page<LabelSession> findAllByOrderByCreatedAtDesc(Pageable pageable);
    List<LabelSession> findByGroupKeyAndStatus(String groupKey, String status);
}
