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
Post a Comment