mirror of https://github.com/apache/openjpa.git
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:
parent
54cb8933e3
commit
db2128fe02
|
@ -21,6 +21,7 @@ import org.apache.openjpa.meta.MetaDataFactory;
|
||||||
import org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser;
|
import org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser;
|
||||||
import org.apache.openjpa.persistence.PersistenceMetaDataFactory;
|
import org.apache.openjpa.persistence.PersistenceMetaDataFactory;
|
||||||
import org.apache.openjpa.persistence.XMLPersistenceMetaDataParser;
|
import org.apache.openjpa.persistence.XMLPersistenceMetaDataParser;
|
||||||
|
import org.apache.openjpa.persistence.XMLPersistenceMetaDataSerializer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link MetaDataFactory} for JPA mapping information.
|
* {@link MetaDataFactory} for JPA mapping information.
|
||||||
|
@ -55,4 +56,12 @@ public class PersistenceMappingFactory
|
||||||
getStrategyInstaller().isAdapting());
|
getStrategyInstaller().isAdapting());
|
||||||
return parser;
|
return parser;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected XMLPersistenceMetaDataSerializer newXMLSerializer() {
|
||||||
|
XMLPersistenceMappingSerializer ser =
|
||||||
|
new XMLPersistenceMappingSerializer((JDBCConfiguration)
|
||||||
|
repos.getConfiguration());
|
||||||
|
ser.setSyncMappingInfo(true);
|
||||||
|
return ser;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue