I have condition which is checking the current date – 3.
select * from TABLE_1 SYSDATE-3 >= TABLE_1.created_date
How should i write in Hibernate query language?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to write HQL using your entities.
http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html_single/#queryhql-examples
There are some examples which are using sysdate.