Use mapping XML serializer.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475026 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
A. Abram White 2006-11-14 22:35:32 +00:00
parent 54cb8933e3
commit db2128fe02
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}
}