HHH-14529 Fix invalid order of elements in orm.xml files used for tests
Surprisingly, the XSD does mandate a specific order for some elements, including "entity", "embeddable" and the children of "attributes". It turns out we were allowing a wrong order with the dom4j implementation, but we no longer do with the jaxb implementation.
This commit is contained in:
parent
6723ed4626
commit
5b830f3f5e
|
@ -35,12 +35,12 @@
|
|||
<id name="id"/>
|
||||
<basic name="isbn"/>
|
||||
<basic name="title"/>
|
||||
<many-to-many name="authors">
|
||||
<join-table name="book_author"/>
|
||||
</many-to-many>
|
||||
<one-to-many name="prizes">
|
||||
<join-table name="book_prize"/>
|
||||
</one-to-many>
|
||||
<many-to-many name="authors">
|
||||
<join-table name="book_author"/>
|
||||
</many-to-many>
|
||||
</attributes>
|
||||
</entity>
|
||||
|
||||
|
|
|
@ -23,6 +23,15 @@
|
|||
</element-collection>
|
||||
</attributes>
|
||||
</entity>
|
||||
<entity class="ContactType">
|
||||
<attributes>
|
||||
<id name="id">
|
||||
<generated-value strategy="AUTO"/>
|
||||
</id>
|
||||
<basic name="type"/>
|
||||
<version name="version"/>
|
||||
</attributes>
|
||||
</entity>
|
||||
<embeddable class="ContactInformation">
|
||||
<attributes>
|
||||
<basic name="name"/>
|
||||
|
@ -34,13 +43,4 @@
|
|||
</one-to-many>
|
||||
</attributes>
|
||||
</embeddable>
|
||||
<entity class="ContactType">
|
||||
<attributes>
|
||||
<id name="id">
|
||||
<generated-value strategy="AUTO"/>
|
||||
</id>
|
||||
<version name="version"/>
|
||||
<basic name="type"/>
|
||||
</attributes>
|
||||
</entity>
|
||||
</entity-mappings>
|
Loading…
Reference in New Issue