I have an H2 column of type Boolean but Hibernate query it using a 1/0 instead of TRUE/FALSE values, which leads to the Values of types "BOOLEAN" and "INTEGER" are not comparable syntax error.
For instance, Hibernate 5 will write
WHERE myBooleanColumn = 1
instead of
WHERE myBooleanColumn = TRUE
How can this be solved?
My H2 database version is 2.0.206 and I'm using Spring Boot 2.5.6.