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

	<!-- EclipseLink vendor adaptor with workaround platform class for HSQL 
		usage -->
	<bean id="vendorAdaptor" class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter"
		parent="abstractVendorAdaptor">
		<property name="database" value="HSQL" />
	</bean>

	<util:properties id="jpaProperties">
		<prop key="openjpa.Log">none</prop>
	</util:properties>

	<!-- Needed to override dataSource definition from infrastructure.xml to 
		make OpenJPA tests work. Open JPA doesn't work with hsqldb 2.x and runs with 
		1.x instead which doesn't support stored procedures which leads to errors 
		at runtime when the scripts/schema-stored-procedure.sql is executed, therefore we omit the script here. -->
	<jdbc:embedded-database id="dataSource" type="HSQL" generate-name="true"/>
</beans>
