openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r475026 - /incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingFactory.java
Date Tue, 14 Nov 2006 22:35:33 GMT
Author: awhite
Date: Tue Nov 14 14:35:32 2006
New Revision: 475026

URL: http://svn.apache.org/viewvc?view=rev&rev=475026
Log:
Use mapping XML serializer.


Modified:
    incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingFactory.java

Modified: incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingFactory.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingFactory.java?view=diff&rev=475026&r1=475025&r2=475026
==============================================================================
--- incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingFactory.java
(original)
+++ incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingFactory.java
Tue Nov 14 14:35:32 2006
@@ -21,6 +21,7 @@
 import org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser;
 import org.apache.openjpa.persistence.PersistenceMetaDataFactory;
 import org.apache.openjpa.persistence.XMLPersistenceMetaDataParser;
+import org.apache.openjpa.persistence.XMLPersistenceMetaDataSerializer;
 
 /**
  * {@link MetaDataFactory} for JPA mapping information.
@@ -54,5 +55,13 @@
             parser.setMappingOverride(((MappingRepository) repos).
                 getStrategyInstaller().isAdapting());
         return parser;
+    }
+
+    protected XMLPersistenceMetaDataSerializer newXMLSerializer() {
+        XMLPersistenceMappingSerializer ser = 
+            new XMLPersistenceMappingSerializer((JDBCConfiguration) 
+            repos.getConfiguration());
+        ser.setSyncMappingInfo(true);
+        return ser;
     }
 }



Mime
View raw message