Package org.hibernate.util

Examples of org.hibernate.util.XMLHelper


    secondPasses = new ArrayList();
//    extendsQueue = new ArrayList();
    extendsQueue = new HashMap();

    namingStrategy = DefaultNamingStrategy.INSTANCE;
    xmlHelper = new XMLHelper();
    interceptor = EmptyInterceptor.INSTANCE;
    properties = Environment.getProperties();
    entityResolver = XMLHelper.DEFAULT_DTD_RESOLVER;
    eventListeners = new EventListeners();
View Full Code Here


  }

  private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
    ois.defaultReadObject();
    this.mapping = buildMapping();
    xmlHelper = new XMLHelper();
  }
View Full Code Here

    collections = new HashMap();
    tables = new TreeMap();
    namedQueries = new HashMap();
    namedSqlQueries = new HashMap();
    sqlResultSetMappings = new HashMap();
    xmlHelper = new XMLHelper();
    typeDefs = new HashMap();
    propertyReferences = new ArrayList();
    secondPasses = new ArrayList();
    interceptor = EmptyInterceptor.INSTANCE;
    properties = Environment.getProperties();
View Full Code Here

  }

  private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
    ois.defaultReadObject();
    this.mapping = buildMapping();
    xmlHelper = new XMLHelper();
  }
View Full Code Here

    collections = new HashMap();
    tables = new TreeMap();
    namedQueries = new HashMap();
    namedSqlQueries = new HashMap();
    sqlResultSetMappings = new HashMap();
    xmlHelper = new XMLHelper();
    typeDefs = new HashMap();
    propertyReferences = new ArrayList();
    secondPasses = new ArrayList();
    interceptor = EmptyInterceptor.INSTANCE;
    properties = Environment.getProperties();
View Full Code Here

  }

  private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
    ois.defaultReadObject();
    this.mapping = buildMapping();
    xmlHelper = new XMLHelper();
  }
View Full Code Here

    secondPasses = new ArrayList<SecondPass>();
    propertyReferences = new ArrayList<Mappings.PropertyReference>();
    extendsQueue = new HashMap<ExtendsQueueEntry, String>();

    xmlHelper = new XMLHelper();
    interceptor = EmptyInterceptor.INSTANCE;
    properties = Environment.getProperties();
    entityResolver = XMLHelper.DEFAULT_DTD_RESOLVER;
    eventListeners = new EventListeners();
View Full Code Here

  private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
    //we need  reflectionManager before reading the other components (MetadataSourceQueue in particular)
    final MetadataProvider metadataProvider = (MetadataProvider) ois.readObject();
    this.mapping = buildMapping();
    xmlHelper = new XMLHelper();
    createReflectionManager(metadataProvider);
    ois.defaultReadObject();
  }
View Full Code Here

    assertEquals( 1, context.getDefaultEntityListeners().size() );
    assertEquals( OtherLogListener.class.getName(), context.getDefaultEntityListeners().get(0) );
  }

  private XMLContext buildContext(String ormfile) throws SAXException, DocumentException, IOException {
    XMLHelper xmlHelper = new XMLHelper();
    ClassLoader cl = Thread.currentThread().getContextClassLoader();
    InputStream is = cl.getResourceAsStream( ormfile );
    assertNotNull( "ORM.xml not found: " + ormfile, is );
    XMLContext context = new XMLContext();
    List errors = new ArrayList();
    SAXReader saxReader = xmlHelper.createSAXReader( "XML InputStream", errors, EJB3DTDEntityResolver.INSTANCE );
    //saxReader.setValidation( false );
    try {
      saxReader.setFeature( "http://apache.org/xml/features/validation/schema", true );
    }
    catch (SAXNotSupportedException e) {
View Full Code Here

/**
* @author Emmanuel Bernard
*/
public class XMLContextTest extends TestCase {
  public void testAll() throws Exception {
    XMLHelper xmlHelper = new XMLHelper();
    ClassLoader cl = Thread.currentThread().getContextClassLoader();
    InputStream is = cl.getResourceAsStream(
        "org/hibernate/test/annotations/reflection/orm.xml" );
    assertNotNull( "ORM.xml not found", is );
    XMLContext context = new XMLContext();
    List errors = new ArrayList();
    SAXReader saxReader = xmlHelper.createSAXReader( "XML InputStream", errors, EJB3DTDEntityResolver.INSTANCE );
    //saxReader.setValidation( false );
    try {
      saxReader.setFeature( "http://apache.org/xml/features/validation/schema", true );
    }
    catch (SAXNotSupportedException e) {
View Full Code Here

TOP

Related Classes of org.hibernate.util.XMLHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.