OPENJPA-1697: A EnumValueHandler strategy along with XmlType annotation incorrectly mapped to XmlType in create table DDL

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@954345 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Catalina Wei 2010-06-14 01:47:08 +00:00
parent 493bfe0e14
commit d781b913d1
1 changed files with 6 additions and 4 deletions

View File

@ -1537,11 +1537,13 @@ public class AnnotationPersistenceMappingParser
// cache the JAXB XmlType class if it is present so we do not
// have a hard-wired dependency on JAXB here
Class xmlTypeClass = null;
try {
xmlTypeClass = Class.forName("javax.xml.bind.annotation.XmlType");
} catch (Exception e) {
if (fm.getValueInfo().getStrategy() != null &&
fm.getValueInfo().getStrategy().equals("org.apache.openjpa.jdbc.meta.strats.XMLValueHandler")) {
try {
xmlTypeClass = Class.forName("javax.xml.bind.annotation.XmlType");
} catch (Exception e) {
}
}
int unique = 0;
DBIdentifier sSecondary = DBIdentifier.NULL;
for (int i = 0; i < pcols.length; i++) {