Skip to content
Snippets Groups Projects
Commit 78b0fd0a authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Add LogicalOperator for FindQuery

parent 35260703
Branches
No related merge requests found
......@@ -24,9 +24,24 @@ import org.springframework.core.style.ToStringCreator;
import java.util.Map;
public class FindQuery<E extends Entity> {
enum LogicalOperator {
AND,
OR
}
private LogicalOperator operator = LogicalOperator.AND;
private E properties;
private Map<String, Object> externalFilters;
public LogicalOperator getOperator() {
return operator;
}
@JsonView(View.Public.class)
public void setOperator(final LogicalOperator operator) {
this.operator = operator;
}
public E getProperties() {
return properties;
}
......@@ -48,6 +63,7 @@ public class FindQuery<E extends Entity> {
@Override
public String toString() {
return new ToStringCreator(getClass())
.append("operator", operator)
.append("properties", properties)
.append("externalFilters", externalFilters)
.toString();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment