diff options
author | bvosburgh | 2011-07-08 15:53:19 +0000 |
---|---|---|
committer | bvosburgh | 2011-07-08 15:53:19 +0000 |
commit | 4d1718874833d42c5dd754ba630a95bda12a8e5a (patch) | |
tree | e4751ebea01e03874a340e2075a20032319d26a1 /jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/AttributeOverrideContainer.java | |
parent | c1c13dda2e01c89bfb6604403521aa07f8b4e303 (diff) | |
download | webtools.dali-4d1718874833d42c5dd754ba630a95bda12a8e5a.tar.gz webtools.dali-4d1718874833d42c5dd754ba630a95bda12a8e5a.tar.xz webtools.dali-4d1718874833d42c5dd754ba630a95bda12a8e5a.zip |
[339432] fix validation of virtual overrides
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/AttributeOverrideContainer.java')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/AttributeOverrideContainer.java | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/AttributeOverrideContainer.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/AttributeOverrideContainer.java index d4d1369e42..e3a51dad74 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/AttributeOverrideContainer.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/AttributeOverrideContainer.java @@ -27,6 +27,15 @@ import java.util.ListIterator; public interface AttributeOverrideContainer extends OverrideContainer { + /** + * Return the column of the mapping or attribute override for the specified + * attribute. Return <code>null</code> if it does not exist. This + * column mapping/attribute override will be found in the mapped superclass + * (or embeddable), not in the owning entity. + */ + ReadOnlyColumn resolveOverriddenColumn(String attributeName); + + // covariant overrides ListIterator<? extends ReadOnlyAttributeOverride> overrides(); ReadOnlyAttributeOverride getOverrideNamed(String name); ListIterator<? extends AttributeOverride> specifiedOverrides(); @@ -36,14 +45,6 @@ public interface AttributeOverrideContainer VirtualAttributeOverride convertOverrideToVirtual(Override_ specifiedOverride); AttributeOverride convertOverrideToSpecified(VirtualOverride virtualOverride); - /** - * Return the column of the mapping or attribute override with the specified - * attribute name. Return <code>null</code> if it does not exist. This - * column mapping/attribute override will be found in the mapped superclass - * (or embeddable), not in the owning entity. - */ - Column resolveOverriddenColumn(String attributeName); - // ********** owner ********** @@ -53,6 +54,6 @@ public interface AttributeOverrideContainer /** * @see AttributeOverrideContainer#resolveOverriddenColumn(String) */ - Column resolveOverriddenColumn(String attributeName); + ReadOnlyColumn resolveOverriddenColumn(String attributeName); } } |