javax.persistence.NoResultException:No entity Found for query 异常的解决办法
Query query = getEntityManager().createQuery("from DataFile d where d.fileName=:fileName");
query.setParameter("fileName", fileName);
return (DataFile) query.getSingleResult...
原创
2012-12-13 14:50:46 ·
1463 阅读 ·
0 评论