365011 - correct invalid validation for Id Class where transients exist
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/AbstractPrimaryKeyValidator.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/AbstractPrimaryKeyValidator.java
index 4c3f9fd..1361a66 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/AbstractPrimaryKeyValidator.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/AbstractPrimaryKeyValidator.java
@@ -401,8 +401,17 @@
 	
 	// **************** attribute mappings in general *************************
 	
+	/**
+	 * Return all the attribute mappings of the given type  
+	 * mapping with transient attribute mappings being excluded
+	 */
 	protected Iterable<AttributeMapping> getAttributeMappings(TypeMapping typeMapping) {
-		return CollectionTools.collection(typeMapping.allAttributeMappings());
+		return new FilteringIterable<AttributeMapping>(CollectionTools.collection(typeMapping.allAttributeMappings())) {
+			@Override
+			protected boolean accept(AttributeMapping o) {
+				return !StringTools.stringsAreEqual(o.getKey(), MappingKeys.TRANSIENT_ATTRIBUTE_MAPPING_KEY);
+			}
+		};
 	}
 	
 	/**