Rebuild the full mapping from persistence-jpa-1.5.1 to reproduce the bug
[jpa-converters] / src / test / resources / META-INF / media.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   <package>de.juplo.yourshouter.api.model</package>
9   <entity class="Media" access="FIELD">
10     <discriminator-value>6</discriminator-value>
11     <attributes>
12       <basic name="link">
13         <column length="511"/>
14       </basic>
15       <basic name="teaser">
16         <column length="1023"/>
17       </basic>
18       <basic name="text">
19         <column length="4095"/>
20       </basic>
21       <many-to-one name="photographer">
22         <cascade>
23           <cascade-all/>
24         </cascade>
25       </many-to-one>
26     </attributes>
27   </entity>
28
29 </entity-mappings>