While coding a fix I noticed two additional Bugs in this code:
- For a NOT-IN-Clause you would have to use AND instead of OR. Currently Hibernate generates a query like ID not in(?,?,?,?,...) or ID not in
}}which is incorrect. It should be {{ID not in(?,?,?,?,...) and ID not in .
- No braces are added around multiple in clauses. For example if you have an additional where clause like ID < ? Hibernate generates ID < ? and id in(?,?,...) or id in
. This query ignores the first predicate for all IDs in the second in clause.
|