Fix XML serialization of cascade data.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428565 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
A. Abram White 2006-08-03 23:36:48 +00:00
parent bc10dd2efd
commit d1df9344fe
3 changed files with 9 additions and 9 deletions

View File

@ -49,20 +49,20 @@ public class JDBCPersistenceProductDerivation
String jpa = PersistenceProductDerivation.SPEC_JPA;
String ejb = PersistenceProductDerivation.ALIAS_EJB;
conf.metaFactoryPlugin.setAlias(jpa,
PersistenceMappingFactory.class.getName());
conf.metaFactoryPlugin.setAlias(ejb,
PersistenceMappingFactory.class.getName());
conf.mappingFactoryPlugin.setAlias(jpa,
conf.metaFactoryPlugin.setAlias(jpa,
PersistenceMappingFactory.class.getName());
conf.mappingFactoryPlugin.setAlias(ejb,
PersistenceMappingFactory.class.getName());
conf.mappingFactoryPlugin.setAlias(jpa,
PersistenceMappingFactory.class.getName());
conf.mappingDefaultsPlugin.setAlias(jpa,
PersistenceMappingDefaults.class.getName());
conf.mappingDefaultsPlugin.setAlias(ejb,
PersistenceMappingDefaults.class.getName());
conf.mappingDefaultsPlugin.setAlias(jpa,
PersistenceMappingDefaults.class.getName());
}
public void afterSpecificationSet(OpenJPAConfiguration c) {

View File

@ -44,10 +44,10 @@ public class PersistenceProductDerivation
return;
OpenJPAConfigurationImpl conf = (OpenJPAConfigurationImpl) c;
conf.metaFactoryPlugin.setAlias(SPEC_JPA,
PersistenceMetaDataFactory.class.getName());
conf.metaFactoryPlugin.setAlias(ALIAS_EJB,
PersistenceMetaDataFactory.class.getName());
conf.metaFactoryPlugin.setAlias(SPEC_JPA,
PersistenceMetaDataFactory.class.getName());
}
public void afterSpecificationSet(OpenJPAConfiguration c) {

View File

@ -1025,7 +1025,7 @@ public class XMLPersistenceMetaDataSerializer
startElement("cascade");
for (String cascade : cascades) {
startElement(cascade);
endElement("cascade");
endElement(cascade);
}
endElement("cascade");
}