<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

	<bean id="dataSource" class="test.jdbc.datasource.InitializingDataSourceFactoryBean">
		<property name="dataSource">
			<bean class="org.springframework.jdbc.datasource.DriverManagerDataSource">
				<property name="driverClassName" value="org.hsqldb.jdbcDriver" />
				<property name="url" value="jdbc:hsqldb:mem:testdb" />
			</bean>
		</property>
		<property name="initScript" value="org/springframework/batch/item/database/init-foo-schema-hsqldb.sql" />
		<property name="destroyScript" value="org/springframework/batch/item/database/destroy-foo-schema-hsqldb.sql" />
	</bean>

	<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
		<property name="dataSource" ref="dataSource" />
	</bean>

	<bean id="incrementerParent" class="org.springframework.jdbc.support.incrementer.HsqlMaxValueIncrementer"
		abstract="true">
		<property name="dataSource" ref="dataSource" />
		<property name="columnName" value="ID" />
	</bean>
</beans>