View Javadoc
1   package org.kuali.student.enrollment.class1.lpr.dao;
2   
3   import java.util.List;
4   
5   import org.kuali.student.enrollment.class1.lpr.model.LprTransactionEntity;
6   import org.kuali.student.enrollment.class1.lpr.model.LprTransactionItemEntity;
7   import org.kuali.student.r2.common.dao.GenericEntityDao;
8   
9   public class LprTransactionItemDao extends GenericEntityDao<LprTransactionItemEntity> {
10      public List<LprTransactionItemEntity> getLprTransactionItemsByLpr(String lprId) {
11          return em.createQuery("from LprTransactionItemEntity a  where a.resultingLprId=:lprId").setParameter("lprId", lprId)
12                  .getResultList();
13      }
14  
15      
16      public List<LprTransactionItemEntity> getLprTransactionItemByPerson(String personId) {
17          return em.createQuery("from LprTransactionItemEntity a where  a.personId = :personId")
18                  .setParameter("personId", personId).getResultList();
19      }
20  
21      public List<LprTransactionItemEntity> getLprTransactionItemByLprTrans(String lprTransId) {
22          return em.createQuery("select a.lprTransItems from LprTransactionEntity a where  a.id = :lprTransId")
23                  .setParameter("lprTransId", lprTransId).getResultList();
24      }
25  
26  }