Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/base/IRelationshipMapping.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/base/IRelationshipMapping.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/base/IRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/base/IRelationshipMapping.java
new file mode 100644
index 0000000000..436ae0d310
--- /dev/null
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/base/IRelationshipMapping.java
@@ -0,0 +1,41 @@
+/*******************************************************************************
+ * Copyright (c) 2006, 2007 Oracle. All rights reserved.
+ * This program and the accompanying materials are made available under the terms of
+ * the Eclipse Public License v1.0, which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/epl-v10.html.
+ *
+ * Contributors:
+ * Oracle - initial API and implementation
+ ******************************************************************************/
+package org.eclipse.jpt.core.internal.context.base;
+
+
+public interface IRelationshipMapping extends IAttributeMapping, IFetchable
+{
+
+ String getTargetEntity();
+
+ String getSpecifiedTargetEntity();
+ void setSpecifiedTargetEntity(String value);
+ String SPECIFIED_TARGET_ENTITY_PROPERTY = "specifiedTargetEntityProperty";
+
+ String getDefaultTargetEntity();
+ String DEFAULT_TARGET_ENTITY_PROPERTY = "defaultTargetEntityProperty";
+
+ IEntity getResolvedTargetEntity();
+ String RESOLVED_TARGET_ENTITY_PROPERTY = "resolvedTargetEntityProperty";
+
+ ICascade getCascade();
+
+ /**
+ * Return whether the specified 'targetEntity' is valid.
+ */
+ boolean targetEntityIsValid(String targetEntity);
+
+ /**
+ * Return the Entity that owns this relationship mapping
+ * @return
+ */
+ IEntity getEntity();
+
+} \ No newline at end of file

Back to the top