Parenthesize filter constraint to prevent interaction with other query constraints.
This commit is contained in:
parent
626ce207a0
commit
41a29eba7a
1 changed files with 7 additions and 2 deletions
|
@ -238,8 +238,13 @@ public final class Relation {
|
|||
// get additional filter property
|
||||
filter = props.getProperty(propName + ".filter");
|
||||
|
||||
if ((filter != null) && (filter.trim().length() == 0)) {
|
||||
if (filter != null) {
|
||||
if (filter.trim().length() == 0) {
|
||||
filter = null;
|
||||
} else {
|
||||
// parenthesise filter
|
||||
filter = "("+filter+")";
|
||||
}
|
||||
}
|
||||
|
||||
// get max size of collection
|
||||
|
|
Loading…
Add table
Reference in a new issue