HHH-15094 Add JPA 3.0 XSDs to LocalXmlResourceResolver
This commit is contained in:
parent
9a23a679bd
commit
d56032ab7f
|
@ -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() ) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue