source: ether_ndacc/trunk/web/WEB-INF/classes/Copy of hibernate.cfg.xml.old @ 113

Last change on this file since 113 was 113, checked in by rboipsl, 13 years ago

Import du projet NDACC _ module web

File size: 1.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
3
4<beans>
5        <!-- sessionFactory -->
6        <bean id="sessionFactory"
7                class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
8                <property name="configLocation">
9                        <value>classpath:hibernate-domain.cfg.xml</value>
10                </property>
11
12                <property name="configurationClass">
13                        <value>org.hibernate.cfg.AnnotationConfiguration</value>
14                </property>
15
16                <property name="hibernateProperties">
17                        <props>
18                                <prop key="hibernate.bytecode.use_reflection_optimizer">false</prop>
19                                <prop key="hibernate.connection.driver_class">org.postgresql.Driver</prop>
20                                <prop key="hibernate.connection.url">jdbc:postgresql://darkstar.ipslnet:5432/NAFE_TEST</prop>
21                                <prop key="hibernate.connection.username">postgres</prop>
22                                <prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
23                                <prop key="hibernate.show_sql">true</prop>
24
25                                <prop key="hibernate.generate_statistics">true</prop>
26                        </props>
27                </property>
28        </bean>
29
30        <bean id="transactionManager"
31                class="org.springframework.orm.hibernate3.HibernateTransactionManager">
32                <property name="sessionFactory" ref="sessionFactory" />
33        </bean>
34
35        <bean id="transactionProxy" abstract="true"
36                class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
37                <property name="transactionManager">
38                        <ref bean="transactionManager" />
39                </property>
40                <property name="transactionAttributes">
41                        <props>
42                                <prop key="insert*">PROPAGATION_REQUIRED</prop>
43                                <prop key="update*">PROPAGATION_REQUIRED</prop>
44                                <prop key="save*">PROPAGATION_REQUIRED</prop>
45                                <prop key="*">PROPAGATION_REQUIRED, readOnly</prop>
46                        </props>
47                </property>
48        </bean>
49
50        <!-- <bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate"> -->
51        <!-- <property name="sessionFactory" ref="sessionFactory" /> -->
52        <!-- </bean> -->
53
54</beans>
Note: See TracBrowser for help on using the repository browser.