/**
* Renvoie les voeux OPI d'un individu
*
* @param indOpi
* @return
* @throws SiScolException
*/
private List<VoeuxIns> getVoeuxApogee(IndOpi indOpi) throws SiScolException {
try {
String queryString = "Select a from VoeuxIns a where a.id.codIndOpi = " + indOpi.getCodIndOpi();
logger.debug("Vérification des voeux " + queryString);
EntityManagerFactory emf = Persistence.createEntityManagerFactory("pun-jpa-siscol");
EntityManager em = emf.createEntityManager();
Query query = em.createQuery(queryString, VoeuxIns.class);
List<VoeuxIns> listeSiScol = query.getResultList();
em.close();
return listeSiScol;
} catch (Exception e) {
throw new SiScolException("SiScol database error on getVoeuxApogee", e);
}
}
SiScolApogeeWSServiceImpl.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:esup-ecandidat
作者:
评论列表
文章目录