#1747 - Refactor io.ebeaninternal.server.query invert boolean methods

This commit is contained in:
rob bygrave
2019-07-02 23:10:21 +12:00
parent f5c12a916d
commit 8b18b2a20e
4 changed files with 20 additions and 26 deletions
@@ -37,7 +37,7 @@ class SqlTree {
*/
private final String inheritanceWhereSql;
private final boolean includeJoins;
private final boolean noJoins;
/**
* Create the SqlSelectClause.
@@ -53,7 +53,7 @@ class SqlTree {
this.inheritanceWhereSql = inheritanceWhereSql;
this.encryptedProps = encryptedProps;
this.manyProperty = manyProperty;
this.includeJoins = includeJoins;
this.noJoins = !includeJoins;
}
/**
@@ -66,8 +66,8 @@ class SqlTree {
/**
* Return true if the query includes joins (not valid for rawSql).
*/
boolean isIncludeJoins() {
return includeJoins;
boolean noJoins() {
return noJoins;
}
/**