I want to use following mysql function in JPQL:-
TIMESTAMPDIFF(YEAR, some_start_date, CURDATE());
Also, I do not have to use Criteria in JPA, since we are following practice of writing Named queries(JPQL). So, how can this function be written in JPQL?