Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/orm/XmlPersistentAttribute.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/orm/XmlPersistentAttribute.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/orm/XmlPersistentAttribute.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/orm/XmlPersistentAttribute.java
index b17c58319f..2bf4687338 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/orm/XmlPersistentAttribute.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/orm/XmlPersistentAttribute.java
@@ -24,7 +24,6 @@ import org.eclipse.jpt.core.internal.XmlEObject;
import org.eclipse.jpt.core.internal.content.java.JavaPersistentAttribute;
import org.eclipse.jpt.core.internal.content.java.JavaPersistentType;
import org.eclipse.jpt.core.internal.jdtutility.Attribute;
-import org.eclipse.jpt.utility.internal.iterators.TransformationIterator;
/**
* <!-- begin-user-doc -->
@@ -285,15 +284,6 @@ public class XmlPersistentAttribute extends XmlEObject
return IXmlContentNodes.PERSISTENT_ATTRIBUTE_ID;
}
- public Iterator<String> candidateMappingKeys() {
- return new TransformationIterator<IXmlAttributeMappingProvider, String>(this.attributeMappingProviders.iterator()) {
- @Override
- protected String transform(IXmlAttributeMappingProvider provider) {
- return provider.key();
- }
- };
- }
-
public Collection<IXmlAttributeMappingProvider> attributeMappingProviders() {
return this.attributeMappingProviders;
}
@@ -315,7 +305,7 @@ public class XmlPersistentAttribute extends XmlEObject
}
public Attribute getAttribute() {
- JavaPersistentType javaPersistentType = ((XmlPersistentType) typeMapping().getPersistentType()).findJavaPersistentType();
+ JavaPersistentType javaPersistentType = typeMapping().getPersistentType().findJavaPersistentType();
if (javaPersistentType == null) {
return null;
}

Back to the top