HHH-14529 Remove commented-out code related to mapping parsing using dom4j
This commit is contained in:
parent
f92275f6c2
commit
55ef4d47f2
|
@ -83,13 +83,6 @@ public class AnnotationMetadataSourceProcessorImpl implements MetadataSourceProc
|
|||
final JPAMetadataProvider jpaMetadataProvider = (JPAMetadataProvider) ( (MetadataProviderInjector) reflectionManager )
|
||||
.getMetadataProvider();
|
||||
for ( Binding xmlBinding : managedResources.getXmlMappingBindings() ) {
|
||||
// if ( !MappingBinder.DelayedOrmXmlData.class.isInstance( xmlBinding.getRoot() ) ) {
|
||||
// continue;
|
||||
// }
|
||||
//
|
||||
// // convert the StAX representation in delayedOrmXmlData to DOM because that's what commons-annotations needs
|
||||
// final MappingBinder.DelayedOrmXmlData delayedOrmXmlData = (MappingBinder.DelayedOrmXmlData) xmlBinding.getRoot();
|
||||
// org.dom4j.Document dom4jDocument = toDom4jDocument( delayedOrmXmlData );
|
||||
if ( !org.dom4j.Document.class.isInstance( xmlBinding.getRoot() ) ) {
|
||||
continue;
|
||||
}
|
||||
|
@ -138,22 +131,6 @@ public class AnnotationMetadataSourceProcessorImpl implements MetadataSourceProc
|
|||
return reflectionManager.toXClass( cls.classForName( className ) );
|
||||
}
|
||||
|
||||
// private Document toDom4jDocument(MappingBinder.DelayedOrmXmlData delayedOrmXmlData) {
|
||||
// // todo : do we need to build a DocumentFactory instance for use here?
|
||||
// // historically we did that to set TCCL since, iirc, dom4j uses TCCL
|
||||
// org.dom4j.io.STAXEventReader staxToDom4jReader = new STAXEventReader();
|
||||
// try {
|
||||
// return staxToDom4jReader.readDocument( delayedOrmXmlData.getStaxEventReader() );
|
||||
// }
|
||||
// catch (XMLStreamException e) {
|
||||
// throw new MappingException(
|
||||
// "An error occurred transforming orm.xml document from StAX to dom4j representation ",
|
||||
// e,
|
||||
// delayedOrmXmlData.getOrigin()
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
|
||||
@Override
|
||||
public void prepare() {
|
||||
// use any persistence-unit-defaults defined in orm.xml
|
||||
|
|
Loading…
Reference in New Issue