blob: 20414fabea765c87504d9d3a3d9437a0552aa73d [file] [log] [blame]
Pamela Dragosh91d04c62017-02-14 19:41:00 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
4 ECOMP-PAP-REST
5 ================================================================================
6 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 -->
21
22<beans xmlns="http://www.springframework.org/schema/beans"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
24 xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
25 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
26 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
27 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
28 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">
29
30 <context:annotation-config />
31 <context:component-scan base-package="org.openecomp" />
32 <!-- Hibernate 4 SessionFactory Bean definition -->
33 <bean id="hibernate4AnnotatedSessionFactory"
34 class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
35 <property name="configLocation">
36 <value>classpath:hibernate.cfg.xml</value>
37 </property>
38 <property name="hibernateProperties">
39 <props>
40 <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
41 <prop key="hibernate.current_session_context_class">thread</prop>
42 <prop key="hibernate.show_sql">false</prop>
43 </props>
44 </property>
45 </bean>
46</beans>