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
|
// cache the JAXB XmlType class if it is present so we do not
|
||||||
// have a hard-wired dependency on JAXB here
|
// have a hard-wired dependency on JAXB here
|
||||||
Class xmlTypeClass = null;
|
Class xmlTypeClass = null;
|
||||||
try {
|
if (fm.getValueInfo().getStrategy() != null &&
|
||||||
xmlTypeClass = Class.forName("javax.xml.bind.annotation.XmlType");
|
fm.getValueInfo().getStrategy().equals("org.apache.openjpa.jdbc.meta.strats.XMLValueHandler")) {
|
||||||
} catch (Exception e) {
|
try {
|
||||||
|
xmlTypeClass = Class.forName("javax.xml.bind.annotation.XmlType");
|
||||||
|
} catch (Exception e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int unique = 0;
|
int unique = 0;
|
||||||
DBIdentifier sSecondary = DBIdentifier.NULL;
|
DBIdentifier sSecondary = DBIdentifier.NULL;
|
||||||
for (int i = 0; i < pcols.length; i++) {
|
for (int i = 0; i < pcols.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue