Subsitute for Month,year,date functions in jpa
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!! select model from IptExchangeratelines model where model.iptExchangerate.id=:id and " + " month(model.currencyExchangeDate)=:month and year(model.currencyExchangeDate)=:year Few JPA implementations have built-in support for date/time functions. EclipseLink EclipseLink supports EXTRACT allowing any database supported date/time part value to be extracted from the date/time. The EXTRACT