Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jpa
diff options
context:
space:
mode:
authorpfullbright2007-05-15 14:36:39 +0000
committerpfullbright2007-05-15 14:36:39 +0000
commitf001c3c272297eebfed4dc8291b4222a81a77bc2 (patch)
treee04d7af13b2172e22a09daa4e290969133a7ff2a /jpa
parentee51286a95ec0ec26a683c6334b45891b6b421d6 (diff)
downloadwebtools.dali-f001c3c272297eebfed4dc8291b4222a81a77bc2.tar.gz
webtools.dali-f001c3c272297eebfed4dc8291b4222a81a77bc2.tar.xz
webtools.dali-f001c3c272297eebfed4dc8291b4222a81a77bc2.zip
143298 (addendum) - removed error for fields marked as @Transient
Diffstat (limited to 'jpa')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/platform/JavaAttributeContext.java3
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/platform/XmlAttributeContext.java4
2 files changed, 5 insertions, 2 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/platform/JavaAttributeContext.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/platform/JavaAttributeContext.java
index c3bfbeb146..ef40e6ae49 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/platform/JavaAttributeContext.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/platform/JavaAttributeContext.java
@@ -97,7 +97,8 @@ public abstract class JavaAttributeContext extends BaseContext
protected void addModifierMessages(List<IMessage> messages) {
JavaPersistentAttribute attribute =
(JavaPersistentAttribute) attributeMapping.getPersistentAttribute();
- if (attribute.getAttribute().isField()) {
+ if (attribute.getMapping().getKey() != IMappingKeys.TRANSIENT_ATTRIBUTE_MAPPING_KEY
+ && attribute.getAttribute().isField()) {
int flags;
try {
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/platform/XmlAttributeContext.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/platform/XmlAttributeContext.java
index afb708ca0a..5b28bb30b1 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/platform/XmlAttributeContext.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/platform/XmlAttributeContext.java
@@ -131,7 +131,9 @@ public abstract class XmlAttributeContext extends BaseContext
protected void addModifierMessages(List<IMessage> messages) {
XmlPersistentAttribute attribute = xmlAttributeMapping.getPersistentAttribute();
- if (attribute.getAttribute() != null && attribute.getAttribute().isField()) {
+ if (attribute.getMapping().getKey() != IMappingKeys.TRANSIENT_ATTRIBUTE_MAPPING_KEY
+ && attribute.getAttribute() != null
+ && attribute.getAttribute().isField()) {
int flags;
try {
flags = attribute.getAttribute().getJdtMember().getFlags();

Back to the top