if (conf instanceof OpenJPAConfiguration) { OpenJPAConfiguration oconf = (OpenJPAConfiguration) conf; Object persistenceVersion = getProperties().get(PersistenceUnitInfoImpl.PERSISTENCE_VERSION); if (persistenceVersion == null) { oconf.setSpecification(SPEC_JPA); String key = ProductDerivations.getConfigurationKey("MetaDataFactory", getProperties()); Object override = getProperties().get(key); if (override instanceof String) addProperty(key, Configurations.combinePlugins(orig, (String) override)); Map<?, ?> props = getProperties(); for (String propKey : _invalidPersistenceProperties) { Object propValue = props.get(propKey); log.trace(_loc.get("conf-load", src, getProperties()));
if (conf instanceof OpenJPAConfiguration) { OpenJPAConfiguration oconf = (OpenJPAConfiguration) conf; Object persistenceVersion = getProperties().get(PersistenceUnitInfoImpl.PERSISTENCE_VERSION); if (persistenceVersion == null) { oconf.setSpecification(SPEC_JPA); String key = ProductDerivations.getConfigurationKey("MetaDataFactory", getProperties()); Object override = getProperties().get(key); if (override instanceof String) addProperty(key, Configurations.combinePlugins(orig, (String) override)); Map<?, ?> props = getProperties(); for (String propKey : _invalidPersistenceProperties) { Object propValue = props.get(propKey); log.trace(_loc.get("conf-load", src, getProperties()));
if (conf instanceof OpenJPAConfiguration) { OpenJPAConfiguration oconf = (OpenJPAConfiguration) conf; Object persistenceVersion = getProperties().get(PersistenceUnitInfoImpl.PERSISTENCE_VERSION); if (persistenceVersion == null) { oconf.setSpecification(SPEC_JPA); String key = ProductDerivations.getConfigurationKey("MetaDataFactory", getProperties()); Object override = getProperties().get(key); if (override instanceof String) addProperty(key, Configurations.combinePlugins(orig, (String) override)); Map<?, ?> props = getProperties(); for (String propKey : _invalidPersistenceProperties) { Object propValue = props.get(propKey); log.trace(_loc.get("conf-load", src, getProperties()));
if (conf instanceof OpenJPAConfiguration) { OpenJPAConfiguration oconf = (OpenJPAConfiguration) conf; Object persistenceVersion = getProperties().get(PersistenceUnitInfoImpl.PERSISTENCE_VERSION); if (persistenceVersion == null) { oconf.setSpecification(SPEC_JPA); String key = ProductDerivations.getConfigurationKey("MetaDataFactory", getProperties()); Object override = getProperties().get(key); if (override instanceof String) addProperty(key, Configurations.combinePlugins(orig, (String) override)); Map<?, ?> props = getProperties(); for (String propKey : _invalidPersistenceProperties) { Object propValue = props.get(propKey); log.trace(_loc.get("conf-load", src, getProperties()));
@Override public void setInto(Configuration conf) { if (conf instanceof OpenJPAConfiguration) { OpenJPAConfiguration oconf = (OpenJPAConfiguration) conf; oconf.setSpecification(SPEC_JPA); // we merge several persistence.xml elements into the // MetaDataFactory property implicitly. if the user has a // global openjpa.xml with this property set, its value will // get overwritten by our implicit setting. so instead, combine // the global value with our settings String orig = oconf.getMetaDataFactory(); if (!StringUtils.isEmpty(orig)) { String key = ProductDerivations.getConfigurationKey ("MetaDataFactory", getProperties()); Object override = getProperties().get(key); if (override instanceof String) addProperty(key, Configurations.combinePlugins(orig, (String) override)); } } super.setInto(conf, null); Log log = conf.getConfigurationLog(); if (log.isTraceEnabled()) { String src = (_source == null) ? "?" : _source; log.trace(_loc.get("conf-load", src, getProperties())); } } }