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
I have gotten that error only when using createQuery instead of createNamedQuery. So when detecting this, hibernate throws the exception.
createQuery
createNamedQuery
Query query = entityManager.createQuery("DS.findUser");