Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2010-01-25 21:04:34 +0000
committerkmoore2010-01-25 21:04:34 +0000
commitdd04862aa2268e15ae6db17ce7da1b24a29e14dc (patch)
treed08b728e3b73c57d797c70ae14a200cd8521aebb /jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/AttributeMapping.java
parent673b711e00504604204c138f7c926512f25c0d73 (diff)
downloadwebtools.dali-dd04862aa2268e15ae6db17ce7da1b24a29e14dc.tar.gz
webtools.dali-dd04862aa2268e15ae6db17ce7da1b24a29e14dc.tar.xz
webtools.dali-dd04862aa2268e15ae6db17ce7da1b24a29e14dc.zip
299547 - this fixes the order column table default and adds validation for the column
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/AttributeMapping.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/AttributeMapping.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/AttributeMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/AttributeMapping.java
index 8ae013fc06..94901ceafc 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/AttributeMapping.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/AttributeMapping.java
@@ -62,11 +62,21 @@ public interface AttributeMapping
* otherwise return null.
*/
String getPrimaryKeyColumnName();
-
+
+ /**
+ * Return whether this mapping is the owning side of the relationship.
+ * Either this is a unidirectional mapping or it is the owning side of a
+ * bidirectional relationship. If bidirectional, the owning side is the
+ * side that does not specify 'mappedBy'. The owning side is the side where
+ * the join table would be specified. If this returns true then the mapping
+ * will be a RelationshipMapping
+ */
+ boolean isRelationshipOwner();
+
/**
* Return whether the given mapping manages a relationship with this mapping
*/
- boolean isOwnedBy(RelationshipMapping mapping);
+ boolean isOwnedBy(AttributeMapping mapping);
/**
* Return whether any database metadata specific validation should occur.

Back to the top