<?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;sql.enforce_strict_size=true"/>
			</bean>
		</property>
		<property name="initScript" value="org/springframework/batch/core/repository/dao/init.sql" />
		<property name="destroyScript" value="org/springframework/batch/core/repository/dao/destroy.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>

	<bean id="jobIncrementer" parent="incrementerParent">
		<property name="incrementerName" value="BATCH_JOB_SEQ" />
	</bean>

	<bean id="jobExecutionIncrementer" parent="incrementerParent">
		<property name="incrementerName" value="BATCH_JOB_EXECUTION_SEQ" />
	</bean>

	<bean id="stepIncrementer" parent="incrementerParent">
		<property name="incrementerName" value="BATCH_STEP_SEQ" />
	</bean>

	<bean id="stepExecutionIncrementer" parent="incrementerParent">
		<property name="incrementerName" value="BATCH_STEP_EXECUTION_SEQ" />
	</bean>

</beans>