JPA-ECLIPSELINK FUNCTION throwing error

时间:2015-04-23 05:33:02

标签: java jpa

I am executing the below query:-

select FUNCTION(LOWER,d.comp) from peopledbvo d where d.person = :persons;

but getting the error unexpected token [FUNCTION] internal exception, i also tried FUNC but getting the same error. here i am using FUNCTION to execute the database function LOWER.

1 个答案:

答案 0 :(得分:0)

You can directly use the LOWER function because it's part of the JPA spec: http://www.objectdb.com/java/jpa/query/jpql/string

select LOWER(d.comp) from peopledbvo d where d.person = :persons;