2.10.2.6.2. String, Arithmetic, and Datetime Functional Expressions
JPQL includes the built-in functions described in subsections JPQL String Functions, JPQL Arithmetic Functions, JPQL Datetime Functions, which may be used in the SELECT, WHERE or HAVING clause of a query.
If the value of any argument to a functional expression is null or unknown, the value of the functional expression is unknown.