summaryrefslogtreecommitdiffstats
path: root/vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-03-20 14:03:36 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-20 14:03:36 +0000
commit9e9f17ce23167e8b5fe85597048d39985d8a5277 (patch)
tree1f6c3476c52e65bcf4d9ce2126694a4dd2584f6e /vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml
parent03359a5641dfb26f93d630a1b1232c0ffc6ec51c (diff)
parentcb8baa2054a427becd39e4031798375efcc9027c (diff)
Merge "Merge simulator from ECOMP's repository"
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