aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web
diff options
context:
space:
mode:
authorThomas <>2023-04-11 17:55:56 +0200
committerThomas <>2023-04-11 17:55:56 +0200
commitfa61353f5d5b47a240dbaddcd94a73d4fd4d31f7 (patch)
treeffcbb693d2789f2f8bf5aa102015b6cd9d38a2b7 /pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web
parent7bc0b978c0e0047f6569040cabae330f8919f0ee (diff)
downloadpdf-as-4-fa61353f5d5b47a240dbaddcd94a73d4fd4d31f7.tar.gz
pdf-as-4-fa61353f5d5b47a240dbaddcd94a73d4fd4d31f7.tar.bz2
pdf-as-4-fa61353f5d5b47a240dbaddcd94a73d4fd4d31f7.zip
fix(database): add missing annotation classes for DB tables
Diffstat (limited to 'pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web')
-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(