Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Fullbright2013-03-15 18:32:52 +0000
committerPaul Fullbright2013-03-19 21:37:58 +0000
commita02dd8093a57727926f3e3d31fec528811548ed8 (patch)
tree77657726510084e9ae8fe2649c2b28dfe40a014f /jaxb/plugins
parente8a49366f716b326abadcc412e35ba5ed361d8f3 (diff)
downloadwebtools.dali-a02dd8093a57727926f3e3d31fec528811548ed8.tar.gz
webtools.dali-a02dd8093a57727926f3e3d31fec528811548ed8.tar.xz
webtools.dali-a02dd8093a57727926f3e3d31fec528811548ed8.zip
only validate java class if there is no oxm mapping for it
Diffstat (limited to 'jaxb/plugins')
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/java/ELJavaClassMapping.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/java/ELJavaClassMapping.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/java/ELJavaClassMapping.java
index ab32b3422b..92b0b63642 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/java/ELJavaClassMapping.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/java/ELJavaClassMapping.java
@@ -248,6 +248,11 @@ public class ELJavaClassMapping
@Override
public void validate(List<IMessage> messages, IReporter reporter) {
+ // only validate if this class mapping is not mapped in an oxm file
+ if (getContextRoot().getTypeMapping(getTypeName().getFullyQualifiedName()) != this) {
+ return;
+ }
+
super.validate(messages, reporter);
if (this.xmlDiscriminatorNode != null) {

Back to the top