diff options
author | bvosburgh | 2009-04-08 21:36:33 +0000 |
---|---|---|
committer | bvosburgh | 2009-04-08 21:36:33 +0000 |
commit | d79667e0baedf62fa012cebd9192f174207abb71 (patch) | |
tree | 4b94c20091d6eccb7dde88f1b27b8867d1ec1659 /jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/JavaEntityProvider.java | |
parent | 42930aa8f26f77f3ab22ef27fbc4c425045dfec6 (diff) | |
download | webtools.dali-d79667e0baedf62fa012cebd9192f174207abb71.tar.gz webtools.dali-d79667e0baedf62fa012cebd9192f174207abb71.tar.xz webtools.dali-d79667e0baedf62fa012cebd9192f174207abb71.zip |
[197069] support for entities in jars - resource model
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/JavaEntityProvider.java')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/JavaEntityProvider.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/JavaEntityProvider.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/JavaEntityProvider.java index 3aa0b12616..264237e2f2 100644 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/JavaEntityProvider.java +++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/JavaEntityProvider.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2008 Oracle. All rights reserved. + * Copyright (c) 2006, 2009 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -15,6 +15,7 @@ import org.eclipse.jpt.core.context.java.JavaEntity; import org.eclipse.jpt.core.context.java.JavaPersistentType; import org.eclipse.jpt.core.context.java.JavaTypeMappingProvider; import org.eclipse.jpt.core.resource.java.EntityAnnotation; +import org.eclipse.jpt.utility.internal.StringTools; /** * @@ -52,4 +53,9 @@ public class JavaEntityProvider return factory.buildJavaEntity(parent); } + @Override + public String toString() { + return StringTools.buildToStringFor(this, this.getAnnotationName()); + } + } |