mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#566 - Refactor internals - Initial tidy on OrmQueryDetail and OrmQueryDetailProperties - internals for fetch paths etc
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user