Coverage Report - org.kuali.student.r2.common.dao.TypeTypeRelationDao
 
Classes in this File Line Coverage Branch Coverage Complexity
TypeTypeRelationDao
0%
0/3
N/A
1
 
 1  
 package org.kuali.student.r2.common.dao;
 2  
 
 3  
 import java.util.List;
 4  
 
 5  
 import org.kuali.student.enrollment.dao.GenericEntityDao;
 6  
 import org.kuali.student.r2.common.entity.TypeTypeRelationEntity;
 7  
 
 8  0
 public class TypeTypeRelationDao extends GenericEntityDao<TypeTypeRelationEntity>{
 9  
 
 10  
     @SuppressWarnings("unchecked")
 11  
     public List<TypeTypeRelationEntity> getTypeTypeRelationsByOwnerAndRelationTypes(String ownerTypeId, String relationTypeId) {
 12  0
         return (List<TypeTypeRelationEntity>) em.createQuery("from TypeTypeRelationEntity rel where rel.type=:relationTypeId AND rel.ownerTypeId=:ownerTypeId").setParameter("relationTypeId", relationTypeId).setParameter("ownerTypeId", ownerTypeId).getResultList();
 13  
     }
 14  
 
 15  
     @SuppressWarnings("unchecked")
 16  
     public List<TypeTypeRelationEntity> getTypeTypeRelationsByOwnerType(String ownerTypeId) {
 17  0
         return (List<TypeTypeRelationEntity>) em.createQuery("from TypeTypeRelationEntity rel where rel.ownerTypeId=:ownerTypeId").setParameter("ownerTypeId", ownerTypeId).getResultList();
 18  
     }
 19  
 }