mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
No effective change - OrmQueryDetail - remove unnecessary if, simplify if
This commit is contained in:
1 parent
4f2d669897
commit
1897ac67a0
2 files changed
+4
-7
No files matched your search
@@ -297,9 +297,8 @@ public class OrmQueryDetail implements Serializable {
|
||||
BeanPropertyAssoc<?> assocOne = (BeanPropertyAssoc<?>) el.getBeanProperty();
|
||||
parentProp = new OrmQueryProperties(parentPath, assocOne.getTargetIdProperty());
|
||||
}
|
||||
if (parentProp != null) {
|
||||
sortFetchPaths(d, parentProp, sorted);
|
||||
}
|
||||
|
||||
sortFetchPaths(d, parentProp, sorted);
|
||||
sorted.put(path, p);
|
||||
}
|
||||
}
|
||||
@@ -366,10 +365,8 @@ public class OrmQueryDetail implements Serializable {
|
||||
} else {
|
||||
if (lazyLoadManyPath != null && lazyLoadManyPath.equals(parent.getPath())) {
|
||||
return false;
|
||||
} else if (!parent.isFetchJoin()) {
|
||||
return true;
|
||||
} else {
|
||||
return hasParentSecJoin(lazyLoadManyPath, parent);
|
||||
return !parent.isFetchJoin() || hasParentSecJoin(lazyLoadManyPath, parent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user