mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
Change *ToMany lazy loading to not use the parent entity/table
This commit is contained in:
1 parent
87a948223c
commit
749f8d0d45
36 files changed
+542
-190
No files matched your search
+8
-7
@@ -21,18 +21,19 @@ public class DefaultExpressionFactory implements SpiExpressionFactory {
|
||||
|
||||
private static final Object[] EMPTY_ARRAY = new Object[] {};
|
||||
|
||||
private final FilterExprPath prefix;
|
||||
private final FilterExprPath prefix = null;
|
||||
|
||||
public DefaultExpressionFactory() {
|
||||
this(null);
|
||||
//this();//null);
|
||||
}
|
||||
|
||||
public DefaultExpressionFactory(FilterExprPath prefix) {
|
||||
this.prefix = prefix;
|
||||
}
|
||||
// public DefaultExpressionFactory(FilterExprPath prefix) {
|
||||
// this.prefix = prefix;
|
||||
// }
|
||||
|
||||
public ExpressionFactory createExpressionFactory(FilterExprPath prefix) {
|
||||
return new DefaultExpressionFactory(prefix);
|
||||
public ExpressionFactory createExpressionFactory(){//FilterExprPath prefix) {
|
||||
return this;
|
||||
//return new DefaultExpressionFactory(prefix);
|
||||
}
|
||||
|
||||
public String getLang() {
|
||||
|
||||
@@ -27,6 +27,9 @@ public class FilterExprPath implements Serializable {
|
||||
* due to a proceeding (earlier) query join etc.
|
||||
*/
|
||||
public FilterExprPath trimPath(int prefixTrim) {
|
||||
if (prefixTrim >= path.length()) {
|
||||
return new FilterExprPath(null);
|
||||
}
|
||||
return new FilterExprPath(path.substring(prefixTrim));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user