Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2011-03-03 03:03:06 +0000
committerkmoore2011-03-03 03:03:06 +0000
commit86452678c194848995d128a59e424e34913ab52a (patch)
treeb380f1ab2d4aa73a9bf01c0bf7db92977c766a6a
parent538fad9608a43f7d512ecc89974bb1671629e518 (diff)
downloadwebtools.dali-86452678c194848995d128a59e424e34913ab52a.tar.gz
webtools.dali-86452678c194848995d128a59e424e34913ab52a.tar.xz
webtools.dali-86452678c194848995d128a59e424e34913ab52a.zip
fix the implementation of getName(), this needs to be the fully qualified name if that is possible
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmPersistentType.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmPersistentType.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmPersistentType.java
index 9e28935ce4..9689f948d5 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmPersistentType.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmPersistentType.java
@@ -182,6 +182,9 @@ public class GenericOrmPersistentType
// ********** name **********
public String getName() {
+ if (this.javaPersistentType != null) {
+ return this.javaPersistentType.getName();
+ }
return this.convertMappingClassName(this.mapping.getClass_());
}

Back to the top