1 <?xml version="1.0" encoding="UTF-8" ?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:context="http://www.springframework.org/schema/context"
5 xmlns:p="http://www.springframework.org/schema/p"
6 xmlns:tx="http://www.springframework.org/schema/tx"
8 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
9 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
10 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd">
13 <context:property-placeholder order="10"
14 location="classpath:spring-persistence-context.properties"
15 ignore-resource-not-found="false"/>
17 <tx:annotation-driven transaction-manager="transactionManager"/>
20 <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>
23 <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
24 p:persistenceUnitName="${jpa.persistence.context.name}"
25 p:persistenceXmlLocation="classpath:META-INF/persistence-jpa.xml"
26 p:dataSource-ref="dataSource"
27 p:packagesToScan="de.test.schemaexport.domain"
30 <property name="jpaVendorAdapter">
31 <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"/>
33 <property name="jpaProperties">
35 <prop key="hibernate.dialect">${hibernate.dialect:org.hibernate.dialect.Oracle10gDialect}</prop>
36 <prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto:validate}</prop>
37 <prop key="hibernate.show_sql">${hibernate.show_sql:false}</prop>
38 <prop key="hibernate.format_sql">${hibernate.format_sql:false}</prop>
39 <!--<prop key="hibernate.transaction.flush_before_completion">${hibernate.transaction.flush_before_completion}</prop>-->
40 <!--<prop key="hibernate.transaction.jta.platform">${hibernate.transaction.jta.platform}</prop>-->
41 <prop key="hibernate.transaction.manager_lookup_class">${hibernate.transaction.manager_lookup_class:org.hibernate.transaction.WebSphereExtendedJTATransactionLookup}</prop>
42 <!--<prop key="hibernate.transaction.factory_class">${hibernate.transaction.factory_class}</prop>-->