<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings xmlns="https://jakarta.ee/xml/ns/persistence/orm"
				 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
				 xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence/orm https://jakarta.ee/xml/ns/persistence/orm/orm_3_2.xsd"
				 version="3.2">

	<persistence-unit-metadata>
		<persistence-unit-defaults>
			<entity-listeners>
				<entity-listener
					class="org.springframework.data.jpa.domain.support.AuditingEntityListener" />
			</entity-listeners>
		</persistence-unit-defaults>
	</persistence-unit-metadata>

	<named-query name="User.findByLastname">
		<query>SELECT u FROM User u WHERE u.lastname = ?1</query>
	</named-query>

	<entity class="org.springframework.data.jpa.domain.sample.Role"
		access="FIELD" name="ROLE">
		<attributes>
			<id name="id">
				<generated-value strategy="AUTO" />
			</id>
			<basic name="name" />
		</attributes>
	</entity>

	<entity class="org.springframework.data.jpa.domain.sample.OrmXmlEntity">
		<attributes>
			<id name="id">
				<generated-value strategy="AUTO" />
			</id>
			<basic name="property1" />
		</attributes>
	</entity>

</entity-mappings>
