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 jpa = PersistenceProductDerivation.SPEC_JPA;
String ejb = PersistenceProductDerivation.ALIAS_EJB; String ejb = PersistenceProductDerivation.ALIAS_EJB;
conf.metaFactoryPlugin.setAlias(jpa,
PersistenceMappingFactory.class.getName());
conf.metaFactoryPlugin.setAlias(ejb, conf.metaFactoryPlugin.setAlias(ejb,
PersistenceMappingFactory.class.getName()); PersistenceMappingFactory.class.getName());
conf.metaFactoryPlugin.setAlias(jpa,
conf.mappingFactoryPlugin.setAlias(jpa,
PersistenceMappingFactory.class.getName()); PersistenceMappingFactory.class.getName());
conf.mappingFactoryPlugin.setAlias(ejb, conf.mappingFactoryPlugin.setAlias(ejb,
PersistenceMappingFactory.class.getName()); PersistenceMappingFactory.class.getName());
conf.mappingFactoryPlugin.setAlias(jpa,
PersistenceMappingFactory.class.getName());
conf.mappingDefaultsPlugin.setAlias(jpa,
PersistenceMappingDefaults.class.getName());
conf.mappingDefaultsPlugin.setAlias(ejb, conf.mappingDefaultsPlugin.setAlias(ejb,
PersistenceMappingDefaults.class.getName()); PersistenceMappingDefaults.class.getName());
conf.mappingDefaultsPlugin.setAlias(jpa,
PersistenceMappingDefaults.class.getName());
} }
public void afterSpecificationSet(OpenJPAConfiguration c) { public void afterSpecificationSet(OpenJPAConfiguration c) {

View File

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

View File

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