If condition contains comparision of boolean expressions, like this: {code:sql} select x from SomeEntity x where (1 > 2) = (3 > 4) {code} Hibernate throws {noformat} org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected AST node {noformat} Simple values works OK ( , e.g. {code:sql} select x from SomeEntity x where true = true {code} ) |
|