Home » Java » Need conversion from native sql query to jpa specification query

Need conversion from native sql query to jpa specification query

Posted by: admin September 26, 2018 Leave a comment

Questions:

I need to convert below SQL query into JPA criteria checking for last 3 days back based on the current date

how to convert this native SQL query to JPA criteria query

AND DATE(created_at) >= (CURDATE() + INTERVAL -3 DAY)
Answers: