Project

General

Profile

Revision 2638be38

ID2638be38d1f2f957820ca1906df2aa1795123eb2
Parent 398bcf3e
Child 69f17e7e

Added by Andreas Müller almost 5 years ago

migrate to hibernate 5 for cdmlib-services and cdmlib-ext #4716

  • (except for hibernate search tests)
  • including new spring-config structure

View differences:

cdmlib-persistence/src/main/resources/eu/etaxonomy/cdm/persistence.xml
10 10
    ">
11 11

  
12 12
  <bean id="transactionManager" class="org.springframework.orm.hibernate5.HibernateTransactionManager">
13
    <property name="sessionFactory" ref="sessionFactory" />
13
      <property name="sessionFactory" ref="sessionFactory" />
14 14
  </bean>
15 15

  
16 16
  <bean id="sessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean" depends-on="tableGeneratorGlobalOverride">
17
        <property name="implicitNamingStrategy">
18
          <bean class="org.hibernate.boot.model.naming.ImplicitNamingStrategyComponentPathImpl" />
19
        </property>
20

  
21
		
17
    <property name="implicitNamingStrategy">
18
        <bean class="org.hibernate.boot.model.naming.ImplicitNamingStrategyComponentPathImpl" />
19
    </property>
22 20
<!--  <property name="entityInterceptor">
23 21
        <bean class="eu.etaxonomy.cdm.persistence.hibernate.CdmHibernateInterceptor" />
24 22
      </property>
25 23
-->
26
      <property name="configLocation" value="classpath:eu/etaxonomy/cdm/hibernate.cfg.xml"/>
24
    <property name="configLocation" value="classpath:eu/etaxonomy/cdm/hibernate.cfg.xml"/>
27 25

  
28 26
      <!--
29 27
            If dataSource is set, this will override corresponding settings in Hibernate properties.
......
32 30

  
33 31
            see also org.springframework.orm.hibernate3.AbstractSessionFactoryBean.setDataSource(DataSource dataSource)
34 32
         -->
35
      <property name="dataSource" ref="dataSource"/>
36

  
37
      <property name="hibernateProperties" ref="hibernateProperties"/>
33
    <property name="dataSource" ref="dataSource"/>
34
    <property name="hibernateProperties" ref="hibernateProperties"/>
38 35
  </bean>
39 36

  
40 37
    <!--
......
65 62
       </property>
66 63
    </bean>
67 64

  
68

  
69 65
</beans>

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)