From ae3cacc9cafd1b3494aa2bdb7edbfcee9117074f Mon Sep 17 00:00:00 2001 From: Miguel Reboiro Jato Date: Thu, 31 Oct 2024 19:14:26 +0100 Subject: [PATCH] Fixes duplicated table creation when running the application The double persistence.xml in JSF and REST projects was causing problems in some environments, as the tables were created twice. This commit fixes this error by moving the persistence.xml to the service layer. --- .../main/resources/META-INF/persistence.xml | 20 ------------------- .../main/resources/META-INF/persistence.xml | 0 2 files changed, 20 deletions(-) delete mode 100644 rest/src/main/resources/META-INF/persistence.xml rename {jsf => service}/src/main/resources/META-INF/persistence.xml (100%) diff --git a/rest/src/main/resources/META-INF/persistence.xml b/rest/src/main/resources/META-INF/persistence.xml deleted file mode 100644 index 6795438..0000000 --- a/rest/src/main/resources/META-INF/persistence.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - java:jboss/datasources/xcs - - es.uvigo.esei.xcs.domain.entities.Owner - es.uvigo.esei.xcs.domain.entities.Pet - es.uvigo.esei.xcs.domain.entities.Administrator - false - - - - - - - \ No newline at end of file diff --git a/jsf/src/main/resources/META-INF/persistence.xml b/service/src/main/resources/META-INF/persistence.xml similarity index 100% rename from jsf/src/main/resources/META-INF/persistence.xml rename to service/src/main/resources/META-INF/persistence.xml -- 2.18.1