The XML-configuration uses exact the same configuration as the annotated one
[jpa-converters] / src / test / resources / META-INF / mapping.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <entity-mappings
3     xmlns="http://java.sun.com/xml/ns/persistence/orm"
4     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5     xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_2_1.xsd"
6     version="2.1">
7
8   <entity class="de.juplo.jpa.converters.EierlegendeWollmilchSau" access="PROPERTY">
9     <attributes>
10       <id name="id">
11         <generated-value/>
12       </id>
13       <basic name="odt">
14         <convert converter="de.juplo.jpa.converters.OffsetDateTimeConverter"/>
15       </basic>
16       <basic name="zdt">
17         <convert converter="de.juplo.jpa.converters.ZonedDateTimeConverter"/>
18       </basic>
19     </attributes>
20   </entity>
21
22 </entity-mappings>