diff options
Diffstat (limited to 'esr-mgr/src/test/resources/Hibernate.cfg.xml')
-rw-r--r-- | esr-mgr/src/test/resources/Hibernate.cfg.xml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/esr-mgr/src/test/resources/Hibernate.cfg.xml b/esr-mgr/src/test/resources/Hibernate.cfg.xml new file mode 100644 index 0000000..8d0776d --- /dev/null +++ b/esr-mgr/src/test/resources/Hibernate.cfg.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Copyright 2016 ZTE Corporation. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<!DOCTYPE hibernate-configuration PUBLIC +"-//Hibernate/Hibernate Configuration DTD 3.0//EN" +"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> +<hibernate-configuration> +<session-factory> + <property name="show_sql">true</property> + <property name="dialect">org.hibernate.dialect.H2Dialect</property> + <property name="hibernate.connection.driver_class">org.h2.Driver</property> + <property name="hibernate.connection.url">jdbc:h2:tcp://localhost:18207/./db/extsys</property> + <property name="hibernate.connection.username">extsys</property> + <property name="hibernate.connection.password">extsys</property> + <property name="hbm2ddl">update</property> + <property name="current_session_context_class">thread</property> + <mapping class="org.onap.aai.esr.entity.db.EmsData"/> + <mapping class="org.onap.aai.esr.entity.db.BaseData"/> + <mapping class="org.onap.aai.esr.entity.db.SdncData"/> + <mapping class="org.onap.aai.esr.entity.db.VimData"/> + <mapping class="org.onap.aai.esr.entity.db.VnfmData"/> +</session-factory> +</hibernate-configuration> |