/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template */ package com.megatim.fdxcommons.dao.ifaces.natureproduction; import com.megatim.fdxcommons.dao.ifaces.abstracts.CustomDAOIfaces; import com.megatim.fdxcommons.model.referentiel.natureproduction.NatureProductionFichier; import com.megatim.fdxcommons.model.referentiel.natureproduction.NatureProductionFichierId; import java.util.List; import javax.persistence.Query; /** * * @author ASUS */ public interface NatureProductionFichierDAO extends CustomDAOIfaces { default List getByReferentiel(String referentielVersion) { Query query = getEntityManager().createQuery("SELECT n from NatureProductionFichier n where n.referentiel.version = :referentielVersion"); query.setParameter("referentielVersion", referentielVersion); return query.getResultList(); } }