HHH-17460 - Ongoing JPA 32 work

This commit is contained in:
Steve Ebersole 2024-03-21 09:04:29 -05:00
parent d10d990c5b
commit be12a899da
8 changed files with 8 additions and 10 deletions

View File

@ -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;
};
}

View File

@ -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>

View File

@ -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"/>

View File

@ -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>

View File

@ -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">

View File

@ -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">

View File

@ -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">

View File

@ -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">