Examples of OJPAPersistenceUnitInfo


Examples of com.orientechnologies.orient.object.jpa.OJPAPersistenceUnitInfo

      }
      break;
    case TAG_PERSISTENCE_UNIT:
      String unitName = attributes.getValue(PersistenceXml.ATTR_UNIT_NAME.toString());
      String transactionType = attributes.getValue(PersistenceXml.ATTR_TRANSACTION_TYPE.toString());
      persistenceUnits.push(new OJPAPersistenceUnitInfo(unitName, transactionType, persistenceXmlRoot, xmlSchemaVersion));
      break;
    case TAG_EXCLUDE_UNLISTED_CLASSES:
      persistenceUnits.peek().setExcludeUnlisted(true);
      break;
    case TAG_PROPERTY:
View Full Code Here

Examples of com.orientechnologies.orient.object.jpa.OJPAPersistenceUnitInfo

    if (s.isEmpty()) {
      return;
    }

    OJPAPersistenceUnitInfo pu = persistenceUnits.peek();

    switch (element) {
    case TAG_PROVIDER:
      pu.setProviderClassName(s);
      break;
    case TAG_JTA_DATA_SOURCE:
      pu.setJtaDataSource(s);
      break;
    case TAG_NON_JTA_DATA_SOURCE:
      pu.setNonJtaDataSource(s);
      break;
    case TAG_MAPPING_FILE:
      pu.addMappingFileName(s);
      break;
    case TAG_JAR_FILE:
      pu.addJarFileName(s);
      break;
    case TAG_CLASS:
      pu.addClassName(s);
      break;
    case TAG_EXCLUDE_UNLISTED_CLASSES:
      pu.setExcludeUnlisted(Boolean.parseBoolean(s));
      break;
    case TAG_SHARED_CACHE_MODE:
      pu.setSharedCacheMode(s);
      break;
    case TAG_VALIDATION_MODE:
      pu.setValidationMode(s);
      break;
    default:
    }
  }
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.