How to combine TRIM and LOWER functions in JPQL? -


i need perform following select:

select c.address customer c lower(trim(c.name)) = :name 

but following exception:

javax.persistence.persistenceexception: org.hibernate.exception.sqlgrammarexception: not execute query 

any idea how can combine trim lower?

i discovered solution, must use both in order statment work:

select c.address customer c lower(trim(both c.name)) = :name 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -