From d1df9344fe663afd0b67f4f81e0b302393647e42 Mon Sep 17 00:00:00 2001 From: "A. Abram White" Date: Thu, 3 Aug 2006 23:36:48 +0000 Subject: [PATCH] Fix XML serialization of cascade data. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428565 13f79535-47bb-0310-9956-ffa450edef68 --- .../jdbc/JDBCPersistenceProductDerivation.java | 12 ++++++------ .../persistence/PersistenceProductDerivation.java | 4 ++-- .../XMLPersistenceMetaDataSerializer.java | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/JDBCPersistenceProductDerivation.java b/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/JDBCPersistenceProductDerivation.java index b54c5e5f2..3c88da59f 100644 --- a/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/JDBCPersistenceProductDerivation.java +++ b/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/JDBCPersistenceProductDerivation.java @@ -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) { diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java index 5c58ac3f0..2e0a94723 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java @@ -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) { diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataSerializer.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataSerializer.java index ee24d0b50..20168ff6b 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataSerializer.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataSerializer.java @@ -1025,7 +1025,7 @@ public class XMLPersistenceMetaDataSerializer startElement("cascade"); for (String cascade : cascades) { startElement(cascade); - endElement("cascade"); + endElement(cascade); } endElement("cascade"); }