Please see attached test files. In the attached files, A Stuff has multiple Things. Each of the Things has a parental reference to their Stuff. The test attempts to do an IS EMPTY check in JPQL against the stuff's @OneToMany mappedBy collection of things. This is the resulting error:
Jul 31, 2020 10:21:33 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
WARNING: SQL Error: 1241, SQLState: 21000
Jul 31, 2020 10:21:33 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
SEVERE: Operand should contain 1 column(s)
Tested against mysql Ver 14.14 Distrib 5.6.38, for Win64 (x86_64) |