I have an @Entity with composite @EmbeddedId primary key. When I do a query like:
SELECT COUNT(*) FROM TheEntity AS theEntity WHERE theEntity.blablablabla
SELECT COUNT(theEntity) FROM TheEntity AS theEntity WHERE theEntity.blablabla
Caused by: java.sql.SQLException: Syntax error: Encountered "," at line 1, column 39.
select count((theEntity.a, theEntity.b)) as col_0_0_ from TheEntity theEntity where theEntity.a=?