001package org.kuali.student.enrollment.class1.lpr.dao;
002
003import org.kuali.student.enrollment.class1.roster.model.LprRosterEntity;
004import org.kuali.student.r2.common.dao.GenericEntityDao;
005
006import java.util.List;
007
008public class LprRosterDao extends GenericEntityDao<LprRosterEntity> {
009
010    public List<LprRosterEntity> getLprRostersByLuiAndRosterType(String luiId, String lprRosterTypeKey){
011        return em.createQuery("from LprRosterEntity m where m.lprRosterType.id=:lprRosterTypeKey" /*and  :luiId MEMBER OF m.associatedLuis */).setParameter("lprRosterTypeKey", lprRosterTypeKey)/*.setParameter("luiId",luiId)*/.getResultList();
012    }
013
014     public List<LprRosterEntity> getLprRostersByLui(String luiId){
015        return em.createQuery("from LprRosterEntity m" /*where :luiId MEMBER OF m.associatedLuis */)/*.setParameter("luiId",luiId)*/.getResultList();
016    }
017
018}