HHH-17460 - Ongoing JPA 32 work
This commit is contained in:
parent
d10d990c5b
commit
be12a899da
|
@ -12,7 +12,7 @@ package org.hibernate.boot.xsd;
|
|||
public class XsdHelper {
|
||||
public static boolean isValidJpaVersion(String version) {
|
||||
return switch ( version ) {
|
||||
case "1.0", "2.0", "2.1", "2.2", "3.0", "3.1", "3.2" -> true;
|
||||
case "1.0", "2.0", "2.1", "2.2", "3.0", "3.1", "3.2", "7.0" -> true;
|
||||
default -> false;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
-->
|
||||
<entity-mappings xmlns="http://www.hibernate.org/xsd/orm/mapping"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
version="3.1">
|
||||
version="7.0">
|
||||
<entity class="org.hibernate.orm.test.boot.models.xml.dynamic.Employee" access="FIELD">
|
||||
<id-class class="org.hibernate.orm.test.boot.models.xml.dynamic.EmployeePK"/>
|
||||
<attributes>
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
~ SPDX-License-Identifier: Apache-2.0
|
||||
~ Copyright: Red Hat Inc. and Hibernate Authors
|
||||
-->
|
||||
<entity-mappings xmlns="http://www.hibernate.org/xsd/orm/mapping"
|
||||
version="3.2">
|
||||
<entity-mappings xmlns="http://www.hibernate.org/xsd/orm/mapping" version="7.0">
|
||||
<entity name="Employee" metadata-complete="true">
|
||||
<named-entity-graph name="employee" include-all-attributes="true">
|
||||
<named-attribute-node name="name"/>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
-->
|
||||
<entity-mappings xmlns="http://www.hibernate.org/xsd/orm/mapping"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
version="3.2">
|
||||
version="7.0">
|
||||
<entity class="org.hibernate.orm.test.boot.models.xml.dynamic.Employee" access="FIELD">
|
||||
<id-class class="org.hibernate.orm.test.boot.models.xml.dynamic.EmployeePK"/>
|
||||
<attributes>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
-->
|
||||
<entity-mappings xmlns="http://www.hibernate.org/xsd/orm/mapping"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
version="3.2">
|
||||
version="7.0">
|
||||
<entity name="EntityWithoutRowId" metadata-complete="true">
|
||||
<attributes>
|
||||
<id name="id">
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
-->
|
||||
<entity-mappings xmlns="http://www.hibernate.org/xsd/orm/mapping"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
version="3.2">
|
||||
version="7.0">
|
||||
<entity name="Contact" metadata-complete="true">
|
||||
<attributes>
|
||||
<id name="id">
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
-->
|
||||
<entity-mappings xmlns="http://www.hibernate.org/xsd/orm/mapping"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
version="3.2">
|
||||
version="7.0">
|
||||
<entity name="SimpleEntity" metadata-complete="true">
|
||||
<attributes>
|
||||
<id name="id">
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
~ SPDX-License-Identifier: Apache-2.0
|
||||
~ Copyright: Red Hat Inc. and Hibernate Authors
|
||||
-->
|
||||
<entity-mappings xmlns="http://www.hibernate.org/xsd/orm/mapping"
|
||||
version="3.2">
|
||||
<entity-mappings xmlns="http://www.hibernate.org/xsd/orm/mapping" version="7.0">
|
||||
<entity name="EntityWithoutTenantId" metadata-complete="true">
|
||||
<attributes>
|
||||
<id name="id">
|
||||
|
|
Loading…
Reference in New Issue