aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web-db/src
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web-db/src')
-rw-r--r--pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web/store/DBRequestStore.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web/store/DBRequestStore.java b/pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web/store/DBRequestStore.java
index 5afb28e4..872dc807 100644
--- a/pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web/store/DBRequestStore.java
+++ b/pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web/store/DBRequestStore.java
@@ -4,13 +4,12 @@ import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
-import org.hibernate.Query;
-import org.hibernate.Session;
-import org.hibernate.SessionFactory;
-import org.hibernate.Transaction;
+import javax.imageio.spi.ServiceRegistry;
+import javax.transaction.Transaction;
+
+import org.apache.cxf.service.invoker.SessionFactory;
+import org.apache.cxf.transport.Session;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
-import org.hibernate.cfg.Configuration;
-import org.hibernate.service.ServiceRegistry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -33,6 +32,8 @@ public class DBRequestStore implements IRequestStore {
public DBRequestStore() {
final Configuration cfg = new Configuration();
cfg.addAnnotatedClass(Request.class);
+ cfg.addAnnotatedClass(Response.class);
+ cfg.addAnnotatedClass(StatisticRequest.class);
cfg.setProperties(WebConfiguration.getHibernateProps());
serviceRegistry = new StandardServiceRegistryBuilder().applySettings(