source: geisa/persistence/implementation/hibernate.cfg.xml @ 594

Last change on this file since 594 was 594, checked in by npipsl, 12 years ago

Suite modification interface

File size: 2.6 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" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
7                <property name="configLocation">
8                        <value>classpath:hibernate-domain.cfg.xml</value>
9                </property>
10
11                <property name="configurationClass">
12                        <value>org.hibernate.cfg.AnnotationConfiguration</value>
13                </property>
14
15                <property name="hibernateProperties">
16                        <props>
17                                <!--<prop key="hibernate.bytecode.use_reflection_optimizer">false</prop>-->
18                                <!--<prop key="hibernate.connection.driver_class">org.postgresql.Driver</prop>-->
19                                <!--<prop key="hibernate.connection.url">jdbc:postgresql://darkstar.ipslnet:5432/PROJECT_SOURCE</prop>-->
20                                <!--<prop key="hibernate.connection.username">postgres</prop>-->
21                                <!--<prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>-->
22                <prop key="hibernate.connection.driver_class">com.mysql.jdbc.Driver</prop>
23                <prop key="hibernate.connection.url">jdbc:mysql://localhost/geisa?autoReconnect=true</prop>
24               <!-- <prop key="hibernate.connection.url">jdbc:mysql://localhost/geisa</prop>-->
25                <!-- en local-->
26                 <prop key="hibernate.connection.username">root</prop>
27                <!-- sur naboo -->
28               <!--  <prop key="hibernate.connection.username">geisa</prop> -->
29                <prop key="hibernate.connection.password">geisa11</prop>
30                <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
31                <prop key="hibernate.show_sql">true</prop>
32                                <!--<prop key="hibernate.generate_statistics">true</prop>-->
33
34                        </props>
35                </property>
36        </bean>
37
38        <bean id="transactionManager"
39                class="org.springframework.orm.hibernate3.HibernateTransactionManager">
40                <property name="sessionFactory" ref="sessionFactory" />
41        </bean>
42
43        <bean id="transactionProxy" abstract="true"
44                class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
45                <property name="transactionManager">
46                        <ref bean="transactionManager" />
47                </property>
48                <property name="transactionAttributes">
49                        <props>
50                                <prop key="insert*">PROPAGATION_REQUIRED</prop>
51                                <prop key="update*">PROPAGATION_REQUIRED</prop>
52                                <prop key="save*">PROPAGATION_REQUIRED</prop>
53                                <prop key="*">PROPAGATION_REQUIRED, readOnly</prop>
54                        </props>
55                </property>
56        </bean>
57
58        <!-- <bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate"> -->
59        <!-- <property name="sessionFactory" ref="sessionFactory" /> -->
60        <!-- </bean> -->
61
62</beans>
Note: See TracBrowser for help on using the repository browser.