Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbvosburgh2011-04-28 02:00:43 +0000
committerbvosburgh2011-04-28 02:00:43 +0000
commit91d39dcd91de9ef79763cec17430b395452b73f9 (patch)
tree8436ff8238739c092ce7d5058f8657a3b505181d /jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/JavaEclipseLinkConversionValue.java
parente924740cdaae5f03ac6917e162fd98ad7d3971af (diff)
downloadwebtools.dali-91d39dcd91de9ef79763cec17430b395452b73f9.tar.gz
webtools.dali-91d39dcd91de9ef79763cec17430b395452b73f9.tar.xz
webtools.dali-91d39dcd91de9ef79763cec17430b395452b73f9.zip
[336296] fix validation of virtual attribute mappings
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/JavaEclipseLinkConversionValue.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/JavaEclipseLinkConversionValue.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/JavaEclipseLinkConversionValue.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/JavaEclipseLinkConversionValue.java
index aa585cb45c..d54092d149 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/JavaEclipseLinkConversionValue.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/JavaEclipseLinkConversionValue.java
@@ -102,14 +102,6 @@ public class JavaEclipseLinkConversionValue
return this.conversionValueAnnotation;
}
- protected TextRange getDataValueTextRange(CompilationUnit astRoot) {
- return this.conversionValueAnnotation.getDataValueTextRange(astRoot);
- }
-
- protected TextRange getObjectValueTextRange(CompilationUnit astRoot) {
- return this.conversionValueAnnotation.getObjectValueTextRange(astRoot);
- }
-
// ********** validation **********
@@ -134,7 +126,16 @@ public class JavaEclipseLinkConversionValue
}
}
+ protected TextRange getDataValueTextRange(CompilationUnit astRoot) {
+ return this.getValidationTextRange(this.conversionValueAnnotation.getDataValueTextRange(astRoot), astRoot);
+ }
+
+ protected TextRange getObjectValueTextRange(CompilationUnit astRoot) {
+ return this.getValidationTextRange(this.conversionValueAnnotation.getObjectValueTextRange(astRoot), astRoot);
+ }
+
public TextRange getValidationTextRange(CompilationUnit astRoot) {
- return this.conversionValueAnnotation.getTextRange(astRoot);
+ TextRange textRange = this.conversionValueAnnotation.getTextRange(astRoot);
+ return (textRange != null) ? textRange : this.getObjectTypeConverter().getValidationTextRange(astRoot);
}
}

Back to the top