Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/java/JavaOverrideContainer.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/java/JavaOverrideContainer.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/java/JavaOverrideContainer.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/java/JavaOverrideContainer.java
index f130f2564b..1b039a842b 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/java/JavaOverrideContainer.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/java/JavaOverrideContainer.java
@@ -41,10 +41,16 @@ public interface JavaOverrideContainer
TextRange getValidationTextRange(CompilationUnit astRoot);
/**
+ * This is necessary for JPA 2.0. Return a prefix (ending in '.') that should be written
+ * to the java source when an override is specified.
+ */
+ String getWritePrefix();
+
+ /**
* This is necessary for JPA 2.0. Return a prefix (ending in '.') that is allowed to be appended to the override name.
* Return null if no prefix is supported. "map." and "key." are the prefixes supported in JPA 2.0.
*/
- String getPrefix();
+ String getPossiblePrefix();
/**
* This is necessary for JPA 2.0 where Override annotation can have a prefix that distinguishes them.

Back to the top