Rebuild the full mapping from persistence-jpa-1.5.1 to reproduce the bug
[jpa-converters] / src / test / resources / META-INF / region.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="Region" access="FIELD">
10     <discriminator-value>5</discriminator-value>
11     <attributes>
12       <basic name="order">
13         <column name="ord"/>
14       </basic>
15       <many-to-many name="cities">
16         <join-table name="Region_City"/>
17         <cascade>
18           <cascade-all/>
19         </cascade>
20       </many-to-many>
21     </attributes>
22   </entity>
23
24 </entity-mappings>