mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Cleanup of expressions after FilterExprPath now only needed on FilterExpressionList
This commit is contained in:
@@ -20,24 +20,12 @@ class AllEqualsExpression implements SpiExpression {
|
||||
|
||||
private final Map<String, Object> propMap;
|
||||
|
||||
private final FilterExprPath pathPrefix;
|
||||
|
||||
AllEqualsExpression(FilterExprPath pathPrefix, Map<String, Object> propMap) {
|
||||
this.pathPrefix = pathPrefix;
|
||||
AllEqualsExpression(Map<String, Object> propMap) {
|
||||
this.propMap = propMap;
|
||||
}
|
||||
|
||||
protected String name(String propName) {
|
||||
if (pathPrefix == null) {
|
||||
return propName;
|
||||
} else {
|
||||
String path = pathPrefix.getPath();
|
||||
if (path == null || path.length() == 0) {
|
||||
return propName;
|
||||
} else {
|
||||
return path + "." + propName;
|
||||
}
|
||||
}
|
||||
return propName;
|
||||
}
|
||||
|
||||
public void containsMany(BeanDescriptor<?> desc, ManyWhereJoins manyWhereJoin) {
|
||||
|
||||
Reference in New Issue
Block a user