diff options
Diffstat (limited to 'catalog-core/catalog-mgr/src/test/resources/Hibernate.cfg.xml')
-rw-r--r-- | catalog-core/catalog-mgr/src/test/resources/Hibernate.cfg.xml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/catalog-core/catalog-mgr/src/test/resources/Hibernate.cfg.xml b/catalog-core/catalog-mgr/src/test/resources/Hibernate.cfg.xml new file mode 100644 index 00000000..e0b13c51 --- /dev/null +++ b/catalog-core/catalog-mgr/src/test/resources/Hibernate.cfg.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Copyright 2016 [ZTE] and others. + + 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:8205/./db/catalog</property> + <property name="hibernate.connection.username">catalog</property> + <property name="hibernate.connection.password">catalog</property> + <property name="hbm2ddl">update</property> + <property name="current_session_context_class">thread</property> + <mapping class="org.openo.commontosca.catalog.db.entity.NodeTemplateData"/> + <mapping class="org.openo.commontosca.catalog.db.entity.PackageData"/> + <mapping class="org.openo.commontosca.catalog.db.entity.ServiceTemplateData"/> + <mapping class="org.openo.commontosca.catalog.db.entity.ServiceTemplateMappingData"/> +</session-factory> +</hibernate-configuration>
\ No newline at end of file |