View Javadoc

1   package org.kuali.student.enrollment.class1.lpr.dao;
2   
3   import org.kuali.student.enrollment.class1.roster.model.LprRosterEntity;
4   import org.kuali.student.r2.common.dao.GenericEntityDao;
5   
6   import java.util.List;
7   
8   public class LprRosterDao extends GenericEntityDao<LprRosterEntity> {
9   
10      public List<LprRosterEntity> getLprRostersByLuiAndRosterType(String luiId, String lprRosterTypeKey){
11          return em.createQuery("from LprRosterEntity m where m.lprRosterType.id=:lprRosterTypeKey" /*and  :luiId MEMBER OF m.associatedLuis */).setParameter("lprRosterTypeKey", lprRosterTypeKey)/*.setParameter("luiId",luiId)*/.getResultList();
12      }
13  
14       public List<LprRosterEntity> getLprRostersByLui(String luiId){
15          return em.createQuery("from LprRosterEntity m" /*where :luiId MEMBER OF m.associatedLuis */)/*.setParameter("luiId",luiId)*/.getResultList();
16      }
17  
18  }