Top Description Fields Constructors Methods
org.hibernate.util.xml

public Class MappingReader

extends Object
Class Inheritance
Imports
java.io.StringReader, org.dom4j.Document, org.dom4j.io.SAXReader, org.slf4j.Logger, .LoggerFactory, org.xml.sax.EntityResolver, .InputSource, .SAXException, org.hibernate.InvalidMappingException

Handles reading mapping documents, both hbm and orm varieties.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final String
public static final MappingReader
private static final Logger

Constructor Summary

AccessConstructor and Description
private
MappingReader()

Disallow direct instantiation.

Method Summary

Modifier and TypeMethod and Description
public XmlDocument
readMappingDocument(EntityResolver entityResolver, InputSource source, Origin origin)

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ASSUMED_ORM_XSD_VERSIONback to summary
public static final String ASSUMED_ORM_XSD_VERSION
INSTANCEback to summary
public static final MappingReader INSTANCE
logback to summary
private static final Logger log

Constructor Detail

MappingReaderback to summary
private MappingReader()

Disallow direct instantiation.

Eventually we perhaps need to have this configurable by the "configuration" and simply reference it from there (registry). This would allow, for example, injection of the entity resolver to use as instance state.

Method Detail

readMappingDocumentback to summary
public XmlDocument readMappingDocument(EntityResolver entityResolver, InputSource source, Origin origin)
setValidationForback to summary
private void setValidationFor(SAXReader saxReader, String xsd)