Subsídio para funções de mês, ano e data em jpa

Eu quero executar essa consulta no JPA.Mas estou recebendo erro ao executar esta consulta.Como usar Month (), Year () no JPA Podemos usá-los em SQL nativo Query.But como usá-lo? Por favor me ajude. Obrigado antecipadamente !!

 select model from IptExchangeratelines model where model.iptExchangerate.id=:id and " +
                " month(model.currencyExchangeDate)=:month and year(model.currencyExchangeDate)=:year

questionAnswers(2)

yourAnswerToTheQuestion