From 86452678c194848995d128a59e424e34913ab52a Mon Sep 17 00:00:00 2001 From: kmoore Date: Thu, 3 Mar 2011 03:03:06 +0000 Subject: fix the implementation of getName(), this needs to be the fully qualified name if that is possible --- .../jpa/core/internal/jpa1/context/orm/GenericOrmPersistentType.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm') 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_()); } -- cgit v1.2.3