diff --git a/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingFactory.java b/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingFactory.java index 395aaa67b..9e2f2e60c 100644 --- a/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingFactory.java +++ b/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingFactory.java @@ -21,6 +21,7 @@ import org.apache.openjpa.meta.MetaDataFactory; 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. @@ -55,4 +56,12 @@ public class PersistenceMappingFactory getStrategyInstaller().isAdapting()); return parser; } + + protected XMLPersistenceMetaDataSerializer newXMLSerializer() { + XMLPersistenceMappingSerializer ser = + new XMLPersistenceMappingSerializer((JDBCConfiguration) + repos.getConfiguration()); + ser.setSyncMappingInfo(true); + return ser; + } }