mirror of https://github.com/apache/openjpa.git
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:
parent
493bfe0e14
commit
d781b913d1
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue