title: Subsitute for Month,year,date functions in jpa
body: <p>I want to execute this query in JPA.But i am getting error while executing this query.How to use Month(),Year() in JPA
  We can use these in native  SQL Query.But how to use it?
  Please help me.Thanks in advance!!</p>
  
  <pre><code> select model from IptExchangeratelines model where model.iptExchangerate.id=:id and " +
                  " month(model.currencyExchangeDate)=:month and year(model.currencyExchangeDate)=:year
  </code></pre>