Description
JPA2 query syntax allows path that navigate thru map key or value to appear as argument to scalar functions.
Examples:
select CONCAT(KEY(p).name, 'xyz') from Employee e,
in (e.phones) p WHERE SUBSTRING(KEY(p).name, 2) like '%2'