| I've set the appropriate versions for Hibernate 5 and added a standalone test case using an H2 database. The error is the same as running inside Oracle. javax.persistence.PersistenceException: org.hibernate.HibernateException: SqlNode's text did not reference expected number of columns when I'm expecting a simple query like
SELECT a.*
FROM a
WHERE EXISTS (SELECT ''
FROM ab intersection
WHERE intersection.a_id = a.id
AND intersection.foobar_id = a.foobar_id)
which Hibernate correctly generates when i rename the "id" attribute in "A" to whatever else. |