| 1 | |
package org.kuali.student.r2.core.classI.atp.dao; |
| 2 | |
|
| 3 | |
import java.util.List; |
| 4 | |
|
| 5 | |
import org.kuali.student.enrollment.dao.GenericEntityDao; |
| 6 | |
import org.kuali.student.r2.core.classI.atp.model.AtpAtpRelationEntity; |
| 7 | |
|
| 8 | 0 | public class AtpAtpRelationDao extends GenericEntityDao<AtpAtpRelationEntity>{ |
| 9 | |
|
| 10 | |
@SuppressWarnings({"unchecked"}) |
| 11 | |
public List<AtpAtpRelationEntity> getAtpAtpRelationsByAtp(String atpKey) { |
| 12 | 0 | return (List<AtpAtpRelationEntity>) em.createQuery("from AtpAtpRelationEntity rel where rel.atp.id=:atpKey").setParameter("atpKey", atpKey).getResultList(); |
| 13 | |
} |
| 14 | |
} |