HHH-15094 Add JPA 3.0 XSDs to LocalXmlResourceResolver

This commit is contained in:
Yoann Rodière 2022-03-01 10:30:55 +01:00 committed by Sanne Grinovero
parent 9a23a679bd
commit d56032ab7f
1 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,9 @@ public class LocalXmlResourceResolver implements javax.xml.stream.XMLResolver {
// JPA 2.1 and 2.2 share the same namespace URI
return openUrlStream( LocalSchemaLocator.resolveLocalSchemaUrl( MappingXsdSupport.jpa21.getLocalResourceName() ) );
}
else if ( MappingXsdSupport.jpa30.getNamespaceUri().matches( namespace ) ) {
return openUrlStream( LocalSchemaLocator.resolveLocalSchemaUrl( MappingXsdSupport.jpa30.getLocalResourceName() ) );
}
else if ( ConfigXsdSupport.getJPA10().getNamespaceUri().matches( namespace ) ) {
// JPA 1.0 and 2.0 share the same namespace URI
return openUrlStream( LocalSchemaLocator.resolveLocalSchemaUrl( ConfigXsdSupport.getJPA10().getLocalResourceName() ) );
@ -55,6 +58,9 @@ public class LocalXmlResourceResolver implements javax.xml.stream.XMLResolver {
// JPA 2.1 and 2.2 share the same namespace URI
return openUrlStream( LocalSchemaLocator.resolveLocalSchemaUrl( ConfigXsdSupport.getJPA21().getLocalResourceName() ) );
}
else if ( ConfigXsdSupport.getJPA30().getNamespaceUri().matches( namespace ) ) {
return openUrlStream( LocalSchemaLocator.resolveLocalSchemaUrl( ConfigXsdSupport.getJPA30().getLocalResourceName() ) );
}
else if ( MappingXsdSupport.hibernateMappingXml.getNamespaceUri().matches( namespace ) ) {
return openUrlStream( LocalSchemaLocator.resolveLocalSchemaUrl( MappingXsdSupport.hibernateMappingXml.getLocalResourceName() ) );
}