package com.honey.honey.repository;

import com.honey.honey.model.Task;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TaskRepository extends JpaRepository<Task, Integer> {
    List<Task> findByTypeOrderByDisplayOrderAsc(String type);
    List<Task> findByTypeAndRequirementIn(String type, List<Long> requirements);
}

