Package org.jbpm.pvm.internal.wire.descriptor

Examples of org.jbpm.pvm.internal.wire.descriptor.HibernateConfigurationDescriptor$AddCfgUrl


  protected HibernateConfigurationBinding(String tagName) {
    super(tagName);
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    HibernateConfigurationDescriptor descriptor = new HibernateConfigurationDescriptor();
   
    String configurationClassName = null;
    if ( element.hasAttribute("annotations")
         && element.getAttribute("annotations").equalsIgnoreCase("enabled")  
       ) {
      // don't replace the string with the reflective classname as that will
      // introduce a hard dependency on the hibernate annotations library
      configurationClassName = "org.hibernate.cfg.AnnotationConfiguration";

    } else {
      configurationClassName = Configuration.class.getName();
    }

    descriptor.setClassName(configurationClassName);

    parseConfiguration(element, parse, descriptor, parser);
   
    return descriptor;
  }
View Full Code Here


  protected HibernateConfigurationBinding(String tagName) {
    super(tagName);
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    HibernateConfigurationDescriptor descriptor = new HibernateConfigurationDescriptor();
   
    String configurationClassName = null;
    if ( element.hasAttribute("annotations")
         && element.getAttribute("annotations").equalsIgnoreCase("enabled")  
       ) {
      // don't replace the string with the reflective classname as that will
      // introduce a hard dependency on the hibernate annotations library
      configurationClassName = "org.hibernate.cfg.AnnotationConfiguration";

    } else {
      configurationClassName = Configuration.class.getName();
    }

    descriptor.setClassName(configurationClassName);

    parseConfiguration(element, parse, descriptor, parser);
   
    return descriptor;
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.wire.descriptor.HibernateConfigurationDescriptor$AddCfgUrl

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.