this should be easy, but my app throws constant error, and I'm new to Hibernate.
I am trying to have simple HQL query in my web app using Hibernate.
I want to execute the following SQL query:
SELECT * FROM deal WHERE deal_status='A' OR WHERE deal_status='O';
HQL does not seem to work with or clause, here my current HQL statements in my web app:
FROM deal d where d.deal_status='O' or d.deal_status='A' order by d.id
Thanks for any Hibernate query help
Regards Alex