diff --git a/pom.xml b/pom.xml
index 1f3e3be..da34bbb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,7 +10,7 @@
org.gcube.accounting
accounting-lib
- 2.1.0-SNAPSHOT
+ 2.2.0-SNAPSHOT
Accounting Library
Accounting Library
jar
@@ -63,11 +63,6 @@
1.7.5
provided
-
- org.reflections
- reflections
- 0.9.10
-
diff --git a/src/main/java/org/gcube/accounting/persistence/AccountingPersistenceFactory.java b/src/main/java/org/gcube/accounting/persistence/AccountingPersistenceFactory.java
index 190352c..6798def 100644
--- a/src/main/java/org/gcube/accounting/persistence/AccountingPersistenceFactory.java
+++ b/src/main/java/org/gcube/accounting/persistence/AccountingPersistenceFactory.java
@@ -7,6 +7,8 @@ import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
+import org.gcube.accounting.datamodel.aggregation.AggregatedServiceUsageRecord;
+import org.gcube.accounting.datamodel.usagerecords.ServiceUsageRecord;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.documentstore.persistence.PersistenceBackendFactory;
@@ -21,7 +23,9 @@ public class AccountingPersistenceFactory {
protected final static Map persistences;
static {
- persistences = new HashMap();
+ persistences = new HashMap();
+ PersistenceBackendFactory.addRecordPackage(ServiceUsageRecord.class.getPackage());
+ PersistenceBackendFactory.addRecordPackage(AggregatedServiceUsageRecord.class.getPackage());
}
public static void setFallbackLocation(String path){