aboutsummaryrefslogtreecommitdiffstats
path: root/vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml
diff options
context:
space:
mode:
Diffstat (limited to 'vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml')
-rw-r--r--vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml b/vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml
new file mode 100644
index 000000000..9e4453feb
--- /dev/null
+++ b/vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml
@@ -0,0 +1,23 @@
+<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
+ http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
+ version="2.1">
+
+ <persistence-unit name="vid" transaction-type="RESOURCE_LOCAL">
+ <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
+
+ <properties>
+ <!-- Hibernate properties -->
+ <property name="hibernate.default_schema" value="vid_portal" />
+ <property name="hibernate.show_sql" value="false" />
+ <property name="hibernate.format_sql" value="false" />
+ <property name="hibernate.dialect" value="org.hibernate.dialect.MariaDB103Dialect" />
+ <property name="hibernate.hbm2ddl.auto" value="validate" />
+ <property name="hibernate.connection.driver_class" value="org.mariadb.jdbc.Driver"/>
+ <property name="hibernate.connection.username" value="euser"/>
+ <property name="hibernate.connection.password" value="euser"/>
+ <property name="hibernate.connection.url" value="jdbc:mariadb://localhost:3306/vid_portal"/>
+ <property name="hibernate.id.new_generator_mappings" value="false"/>
+ </properties>
+ </persistence-unit>
+</persistence> \ No newline at end of file