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

	<import resource="classpath:/config/spring-data-cassandra-basic.xml"/>

	<cassandra:mapping entity-base-packages="org.springframework.data.cassandra.repository.forcequote.config">
		<cassandra:entity class="org.springframework.data.cassandra.repository.forcequote.config.Implicit">
			<cassandra:table force-quote="true" />
		</cassandra:entity>
		<cassandra:entity
				class="org.springframework.data.cassandra.repository.forcequote.config.Explicit">
			<!-- this value must match those in
			org.springframework.data.cassandra.test.integration.forcequote.config.ForceQuotedRepositoryXmlConfigIntegrationTests
			testExplicit() -->
			<cassandra:table name="Zz" force-quote="true"/>
		</cassandra:entity>
		<cassandra:entity
				class="org.springframework.data.cassandra.repository.forcequote.config.ImplicitProperties">
			<cassandra:property name="primaryKey" force-quote="true"/>
			<cassandra:property name="stringValue" force-quote="true"/>
		</cassandra:entity>
		<cassandra:entity
				class="org.springframework.data.cassandra.repository.forcequote.config.ExplicitProperties">
			<!-- these values must match those in
			org.springframework.data.cassandra.test.integration.forcequote.config.ForceQuotedRepositoryXmlConfigIntegrationTests
			testExplicitPropertiesWithXmlValues() -->
			<cassandra:property name="primaryKey" force-quote="true"
								column-name="XmlPrimaryKey"/>
			<cassandra:property name="stringValue" force-quote="true"
								column-name="XmlStringValue"/>
		</cassandra:entity>
	</cassandra:mapping>

	<cassandra:session port="${build.cassandra.native_transport_port}"
					   keyspace-name="ForceQuoteRepositoryXmlConfigIntegrationTests"
					   schema-action="RECREATE_DROP_UNUSED"
					   cassandra-converter-ref="cassandraConverter">
		<cassandra:keyspace name="ForceQuoteRepositoryXmlConfigIntegrationTests"
							action="CREATE_DROP" durable-writes="true">
		</cassandra:keyspace>
	</cassandra:session>

	<cassandra:repositories
			base-package="org.springframework.data.cassandra.repository.forcequote.config"/>

</beans>
