node to traverse cannot be null (Hibernate SQL)

前端 未结 6 1501
醉酒成梦
醉酒成梦 2021-02-12 03:23

I\'m performing a SQL query through hibernate, which looks like:

SELECT thi 
FROM track_history_items thi 
JOIN artists art 
  ON thi.artist_id = art.id 
WHERE t         


        
6条回答
  •  Happy的楠姐
    2021-02-12 04:12

    I have gotten that error only when using createQuery instead of createNamedQuery. So when detecting this, hibernate throws the exception.

    Query query = entityManager.createQuery("DS.findUser");
    

提交回复
热议问题