diff --git a/.gitignore b/.gitignore
index f1822f8..1e2c7c7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/jqb2jooq.iml
/target
.DS_Store
+/.idea/
diff --git a/pom.xml b/pom.xml
index 28f3a72..79e8acf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -153,6 +153,24 @@
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ 3.0.0
+
+
+ generate-test-sources
+
+ add-test-source
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/io/kowalski/jqb2jooq/FilterParser.java b/src/main/java/io/kowalski/jqb2jooq/FilterParser.java
index 3aa723a..db56e34 100644
--- a/src/main/java/io/kowalski/jqb2jooq/FilterParser.java
+++ b/src/main/java/io/kowalski/jqb2jooq/FilterParser.java
@@ -13,24 +13,24 @@
@NoArgsConstructor(access = AccessLevel.PRIVATE)
class FilterParser {
- protected static Filter parseJSON(final Class extends RuleTarget> targetClass, final Map jsonFilter) {
+ static Filter parseJSON(final RuleTargetBuilder ruleTargetBuilder, final Map jsonFilter) {
RuleSet outerRuleSet = new RuleSet();
outerRuleSet.setOperator(BooleanOperator.valueOf(jsonFilter.get("condition").toString()));
- outerRuleSet.setRules(parseRaw(targetClass, parseRulesList(jsonFilter)));
+ outerRuleSet.setRules(parseRaw(ruleTargetBuilder, parseRulesList(jsonFilter)));
return new Filter(outerRuleSet);
}
- private static Collection parseRaw(final Class extends RuleTarget> targetClass, List