Examples of HibernateSessionFactoryDescriptor


Examples of org.jbpm.pvm.internal.wire.descriptor.HibernateSessionFactoryDescriptor

  public HibernateSessionFactoryBinding() {
    super("hibernate-session-factory");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    HibernateSessionFactoryDescriptor descriptor = new HibernateSessionFactoryDescriptor();
   
    if (element.hasAttribute("configuration")) {
      descriptor.setConfigurationName(element.getAttribute("configuration"));

    // if hibernate session factory binding has sub elements, we assume that
    // it is an inline configuration declaration
    } else if (!XmlUtil.elements(element).isEmpty()) {
      Descriptor configurationDescriptor = (Descriptor) super.parse(element, parse, parser);
      descriptor.setConfigurationDescriptor(configurationDescriptor);
    }

    return descriptor;
  }
View Full Code Here

Examples of org.jbpm.wire.descriptor.HibernateSessionFactoryDescriptor

* @author Tom Baeyens
*/
public class HibernateSessionFactoryBinding extends HibernateConfigurationBinding {

  public Object parse(Element element, Parse parse, Parser parser) {
    HibernateSessionFactoryDescriptor descriptor = new HibernateSessionFactoryDescriptor();
   
    if (element.hasAttribute("configuration")) {
      descriptor.setConfigurationName(element.getAttribute("configuration"));

    // if hibernate session factory binding has sub elements, we assume that
    // it is an inline configuration declaration
    } else if (XmlUtil.elements(element)!=null) {
      Descriptor configurationDescriptor = (Descriptor) super.parse(element, parse, parser);
      descriptor.setConfigurationDescriptor(configurationDescriptor);
    }

    return descriptor;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.