From fa61353f5d5b47a240dbaddcd94a73d4fd4d31f7 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Tue, 11 Apr 2023 17:55:56 +0200 Subject: fix(database): add missing annotation classes for DB tables --- .../java/at/gv/egiz/pdfas/web/store/DBRequestStore.java | 13 +++++++------ 1 file 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( -- cgit v1.2.3