<?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:int="http://www.springframework.org/schema/integration"
	xmlns:int-jpa="http://www.springframework.org/schema/integration/jpa"
	xsi:schemaLocation="http://www.springframework.org/schema/jdbc https://www.springframework.org/schema/jdbc/spring-jdbc.xsd
		http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/integration/jpa https://www.springframework.org/schema/integration/jpa/spring-integration-jpa.xsd">

	<import resource="classpath:/hibernateJpa-context.xml" />

	<int:channel id="target"/>

	<int-jpa:outbound-channel-adapter id="jpaOutboundChannelAdapter"
			entity-manager-factory="entityManagerFactory"
			auto-startup="true"
			entity-class="org.springframework.integration.jpa.test.entity.StudentDomain"
			jpa-query="select student from Student student"
			persist-mode="PERSIST"
			order="1"
			channel="target">
		<int-jpa:parameter  name="firstName"   value="kenny"  type="java.lang.String"/>
		<int-jpa:parameter  name="firstaName"  value="cartman"/>
		<int-jpa:parameter  name="updatedDateTime" expression="new java.util.Date()"/>
	</int-jpa:outbound-channel-adapter>

</beans>
