No entity found for query Exception

前端 未结 3 1163
不思量自难忘°
不思量自难忘° 2020-12-29 04:24

I am executing the following lines:

  String queString = \"some query string\"
  Query q1 = em.createNativeQuery(queString, T03CallsLog.class);
  T03CallsLog         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-29 04:29

    If a query returns no result, a NoResultException is thrown by getSingleResult(). Are you sure, the seconds MDB, will get any results by your query?

提交回复
热议问题