Skip to content
Advertisement

Problems with JPA Hibernate Query with ‘Interval’

I need the possibility to retrieve the orders for the past 6 months for my backend application.

After some research , I’ve found out that JPA does not support the INTERVAL definition. Is there a workaround for archiving this particularly function ?

Advertisement

Answer

In that case use the JPA provided functionality , where native sql code is not required.

and on java side invoke it

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement