I need to perform the following select:
select c.address from Customer c where lower(trim(c.name)) = :name
But I get the following exception:
javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
Any idea how can I combine trim
with lower
?