mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
No effective change - tidy SqlTreeAlias only
This commit is contained in:
1 parent
b4d037fa18
commit
f07c7411fa
2 files changed
+13
-15
No files matched your search
@@ -113,11 +113,8 @@ final class SqlTreeAlias {
|
||||
if (prefix == null) {
|
||||
return rootTableAlias;
|
||||
} else {
|
||||
String s = aliasMap.get(prefix);
|
||||
if (s == null) {
|
||||
return calcAlias(prefix);
|
||||
}
|
||||
return s;
|
||||
String alias = aliasMap.get(prefix);
|
||||
return alias != null ? alias : calcAlias(prefix);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,14 +125,14 @@ final class SqlTreeAlias {
|
||||
if (prefix == null) {
|
||||
return rootTableAlias;
|
||||
}
|
||||
String s = manyWhereAliasMap.get(prefix);
|
||||
if (s == null) {
|
||||
s = aliasMap.get(prefix);
|
||||
String alias = manyWhereAliasMap.get(prefix);
|
||||
if (alias == null) {
|
||||
alias = aliasMap.get(prefix);
|
||||
}
|
||||
if (s == null) {
|
||||
throw new RuntimeException("Could not determine table alias for " + prefix + " manyMap:" + manyWhereAliasMap + " aliasMap:" + aliasMap);
|
||||
if (alias == null) {
|
||||
throw new RuntimeException("Could not determine table alias for " + prefix);
|
||||
}
|
||||
return s;
|
||||
return alias;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user