Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:jpa="http://www.springframework.org/schema/data/jpa"
- xmlns:util="http://www.springframework.org/schema/util" xmlns:context="http://www.springframework.org/schema/context"
- xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/data/jpa
- http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">
- <context:component-scan base-package="fr.bge" />
- <!-- <bean id="dataSource"
- class="org.springframework.jdbc.datasource.DriverManagerDataSource"
- p:driverClassName="org.postgresql.Driver" p:url="jdbc:postgresql://localhost:5432/springbatch"
- p:username="springbatch" p:password="springbatch" />
- -->
- <bean id="dataSource"
- class="org.springframework.jdbc.datasource.DriverManagerDataSource"
- p:driverClassName="org.apache.derby.jdbc.ClientDriver" p:url="jdbc:derby://localhost:1527/station"
- p:username="app" p:password="app" />
- <bean id="entityManagerFactory"
- class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
- p:dataSource-ref="dataSource" p:persistence-unit-name="jpa">
- <property name="jpaVendorAdapter">
- <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"
- p:database="DERBY" p:databasePlatform="org.hibernate.dialect.DerbyDialect"
- p:showSql="true" p:generate-ddl="true" />
- </property>
- </bean>
- <!-- <bean id="entityManagerFactory"
- class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
- p:dataSource-ref="dataSource" p:persistence-unit-name="jpa">
- <property name="jpaVendorAdapter">
- <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"
- p:database="POSTGRESQL" p:databasePlatform="org.hibernate.dialect.PostgreSQLDialect"
- p:showSql="true" p:generate-ddl="true" />
- </property>
- </bean> -->
- <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"
- p:entityManagerFactory-ref="entityManagerFactory" />
- <context:annotation-config />
- <tx:annotation-driven />
- <bean id="stationdao" class="fr.bge.springbatch.StationDAORepositoryImpl" />
- <bean id="pagedstationdao" class="fr.bge.springbatch.PagedStationDAORepositoryImpl" />
- <jpa:repositories base-package="fr.bge" />
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement