#566 - Refactor internals - Initial tidy on OrmQueryDetail and OrmQueryDetailProperties - internals for fetch paths etc

This commit is contained in:
Robin Bygrave committed 2016-02-17 13:59:48 +13:00
1 parent 2fcaab44c6
commit 5c6d6608ef
12 files changed
+397 -145

No files matched your search

@@ -64,8 +64,7 @@ public class OrmQueryDetailParser {
private void process() {
if (isFetch()) {
OrmQueryProperties props = readFindFetch();
detail.putFetchPath(props);
detail.fetch(readFindFetch());
} else if (parser.isMatch("where")) {
readWhere();
@@ -157,7 +156,7 @@ public class OrmQueryDetailParser {
private void readSelect() {
String path = null;
String props = parser.nextWord();
if (props != null && props.startsWith("(")) {
if (props.startsWith("(")) {
props = props.substring(1, props.length() - 1);
OrmQueryProperties base = new OrmQueryProperties(path, props);
detail.setBase(base);