summaryrefslogtreecommitdiffstats
path: root/cps-ri/src/main/resources/hibernate.cfg.xml
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2022-03-25 18:29:31 +0000
committerGerrit Code Review <gerrit@onap.org>2022-03-25 18:29:31 +0000
commit512f7ab93af18ed1f2bd93da18879666906521f6 (patch)
tree6d95a7c7b69bcbd7ecc5b5c060f1f445a68e386a /cps-ri/src/main/resources/hibernate.cfg.xml
parent1f8074851ba4ea3263a2beb15436ab9085a53580 (diff)
parentc9275522f95f6cd94f28286f5e86f86dd451a19b (diff)
Merge "Add Start and Stop sessions on JAVA API"
Diffstat (limited to 'cps-ri/src/main/resources/hibernate.cfg.xml')
-rw-r--r--cps-ri/src/main/resources/hibernate.cfg.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/cps-ri/src/main/resources/hibernate.cfg.xml b/cps-ri/src/main/resources/hibernate.cfg.xml
new file mode 100644
index 0000000000..98e6cfc5b7
--- /dev/null
+++ b/cps-ri/src/main/resources/hibernate.cfg.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
+
+<hibernate-configuration>
+ <session-factory>
+ <property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
+ <property name="hibernate.connection.url">jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/cpsdb</property>
+ <property name="hibernate.connection.username">${DB_USERNAME}</property>
+ <property name="hibernate.connection.password">${DB_PASSWORD}</property>
+ <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQL82Dialect</property>
+ <property name="show_sql">true</property>
+ <property name="hibernate.hbm2ddl.auto">update</property>
+ </session-factory>
+</hibernate-configuration> \ No newline at end of file