MARTINO wrote:
well i understand where is the problem
in fact this is not a OR but a XOR.
because begin date is always before end date
on my db, if i execute the SQL request, good results are returns
hibernate change my request using pure boolean algebric rules.
Sorry, I still don't understand what should be wrong.
You wrote:
Quote:
the date compare are not correct (< substitute to <= and > to >=)
That's not true. Look at what you've written.
If you still think it's incorrect post your SQL statement which works on your database and the corresponding query in HQL you're using.
Best regards
Sven