mirror of https://github.com/apache/openjpa.git
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:
parent
bc10dd2efd
commit
d1df9344fe
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -1025,7 +1025,7 @@ public class XMLPersistenceMetaDataSerializer
|
|||
startElement("cascade");
|
||||
for (String cascade : cascades) {
|
||||
startElement(cascade);
|
||||
endElement("cascade");
|
||||
endElement(cascade);
|
||||
}
|
||||
endElement("cascade");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue