1 package org.kuali.student.enrollment.class1.lrr.dao;
2
3 import org.kuali.student.enrollment.class1.lrr.model.LearningResultRecordEntity;
4 import org.kuali.student.r2.common.dao.GenericEntityDao;
5
6 import java.util.List;
7
8 public class LrrDao extends GenericEntityDao<LearningResultRecordEntity> {
9
10 public List<LearningResultRecordEntity> getLearningResultRecordsForLprIds(List<String> lprIds) {
11 return em.createQuery("from LearningResultRecordEntity lrr where lrr.lprId in :lprIds")
12 .setParameter("lprIds", lprIds)
13 .getResultList();
14 }
15
16 public List<LearningResultRecordEntity> getLearningResultRecordsForLpr(String lprId) {
17 return em.createQuery("from LearningResultRecordEntity lrr where lrr.lprId = :lprId")
18 .setParameter("lprId", lprId)
19 .getResultList();
20 }
21
22 }