diff --git a/pom.xml b/pom.xml
index 19ddc23..7106a77 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
org.sadtech.haiti.filter
haiti-filter-criteria
- 0.0.1-RELEASE
+ 0.0.2-RELEASE
Haiti Filter Criteria
Fast creation of filtering requests using the Criteria Api wrapper.
diff --git a/src/main/java/org/sadtech/haiti/filter/criteria/CriteriaQuery.java b/src/main/java/org/sadtech/haiti/filter/criteria/CriteriaQuery.java
index f77dfe9..bedfa9b 100644
--- a/src/main/java/org/sadtech/haiti/filter/criteria/CriteriaQuery.java
+++ b/src/main/java/org/sadtech/haiti/filter/criteria/CriteriaQuery.java
@@ -91,7 +91,9 @@ public class CriteriaQuery implements FilterQuery {
@Override
public Q build() {
- return (Q) specifications;
+ return (Q) specifications.stream()
+ .map(Container::getSpecification)
+ .collect(Collectors.toList());
}
public static CriteriaQuery empty() {