The CONCAT
function was extended in JPA 2.0 to allow passing more than 2 parameters, from section 4.6.17.2.1 (String Functions) of the specification:
CONCAT(string_primary, string_primary {, string_primary}* )
In JPA 1 this was restricted to exactly two parameters.