package com.astalange.core.repository;

import com.astalange.core.entity.Dotation;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import com.astalange.core.entity.Saison;

@Repository
public interface DotationRepository extends JpaRepository<Dotation, Long>, JpaSpecificationExecutor<Dotation> {
    List<Dotation> findByLicence_SaisonAndChoisiTrueAndFourniFalse(Saison saison);
}
