diff options
author | kmoore | 2011-11-01 21:12:55 +0000 |
---|---|---|
committer | kmoore | 2011-11-01 21:12:55 +0000 |
commit | 18256b7e26ad1bc7229da71c87e111d416242394 (patch) | |
tree | 92cd653211847bac14ab29041576b97d9af17a6e /jpa/plugins/org.eclipse.jpt.jpa.core | |
parent | 51d2e3453aeefe1ed7e27c8d9ac5369f1f1541aa (diff) | |
download | webtools.dali-18256b7e26ad1bc7229da71c87e111d416242394.tar.gz webtools.dali-18256b7e26ad1bc7229da71c87e111d416242394.tar.xz webtools.dali-18256b7e26ad1bc7229da71c87e111d416242394.zip |
Bug 362598 - generanted canonical metamodel classes all have validation warning
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.jpa.core')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/GenericRootContextNode.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/GenericRootContextNode.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/GenericRootContextNode.java index 1a6866663e..c46c469e3d 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/GenericRootContextNode.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/GenericRootContextNode.java @@ -27,6 +27,7 @@ import org.eclipse.jpt.jpa.core.context.persistence.PersistenceXml; import org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextNode; import org.eclipse.jpt.jpa.core.internal.validation.DefaultJpaValidationMessages; import org.eclipse.jpt.jpa.core.internal.validation.JpaValidationMessages; +import org.eclipse.jpt.jpa.core.jpa2.MetamodelSynchronizer; import org.eclipse.jpt.jpa.core.jpa2.context.JpaRootContextNode2_0; import org.eclipse.jpt.jpa.core.jpa2.context.persistence.PersistenceXml2_0; import org.eclipse.jpt.jpa.core.resource.xml.JpaXmlResource; @@ -278,6 +279,9 @@ public class GenericRootContextNode if (persistenceUnit.specifiesPersistentType(annotatedClassName)) { orphans.remove(annotatedClassName); } + else if (MetamodelSynchronizer.MetamodelTools.isMetamodel(getJpaProject().getJavaResourceType(annotatedClassName))) { + orphans.remove(annotatedClassName); + } } // TODO remove 'jrcu' |