摘要:
1. hibernate 里是session.createQuery(); hql查询,session.createSqlQuery(); sql查询 jpa 里是entityManager.createQuery; jpql查询(类hql),entityManager.createNativeQu 阅读全文
posted @ 2018-05-09 14:13
zhengbiyu
阅读(158)
评论(0)
推荐(0)
摘要:
使用getSingleResult()方法时如果没有结果(也就是返回null)时习惯思维是应该返回null,而getSingleResult()方法中有这么一条语句: @throws EntityNotFoundException if there is no result 也就是说,当他查询不到结 阅读全文
posted @ 2018-05-09 14:09
zhengbiyu
阅读(2813)
评论(0)
推荐(0)
浙公网安备 33010602011771号