From 132b79a57b0595430cfa245590e3b1a5d61891c5 Mon Sep 17 00:00:00 2001
From: Joaquín Reñé <jrene@curisit.net>
Date: Fri, 17 Apr 2026 07:13:56 +0000
Subject: [PATCH] #4479 - upgrade SecurisServer to Java 21

---
 securis/src/main/resources/META-INF/persistence.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/securis/src/main/resources/META-INF/persistence.xml b/securis/src/main/resources/META-INF/persistence.xml
index dcfc8a8..fa1bf4a 100644
--- a/securis/src/main/resources/META-INF/persistence.xml
+++ b/securis/src/main/resources/META-INF/persistence.xml
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<persistence version="3.0"
-    xmlns="https://jakarta.ee/xml/ns/persistence"
+<persistence version="2.2"
+    xmlns="http://xmlns.jcp.org/xml/ns/persistence"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd">
+    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd">
 
     <persistence-unit name="localdb" transaction-type="RESOURCE_LOCAL">
         <description>SeCuris LocalDB</description>
@@ -12,7 +12,7 @@
 
         <properties>
             <property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.internal.NoCachingRegionFactory"/>
-            <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
+            <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
             <property name="hibernate.cache.use_second_level_cache" value="false"/>
             <property name="hibernate.format_sql" value="false"/>
         </properties>

--
Gitblit v1.3.2