3.4.5. Query Language Substitution
You can define new Hibernate query tokens using
hibernate.query.substitutions
. For example:
hibernate.query.substitutions true=1, false=0
This would cause the tokens
true
and false
to be translated to integer literals in the generated SQL.
hibernate.query.substitutions toLowercase=LOWER
This would allow you to rename the SQL
LOWER
function.