node to traverse cannot be null (Hibernate SQL)

前端 未结 6 1523
醉酒成梦
醉酒成梦 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条回答
  •  攒了一身酷
    2021-02-12 04:19

    You can also get this error if you execute a query that has a syntax error, such as forgetting a comma in an update statement

    update MyObject set field1=5 field2=4 WHERE id = 4
    

    See how there is a missing comma between field1=5 and field2=4? You will get a node to traverse cannot be null error.

提交回复
热议问题