summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetya Sabeva2012-11-03 18:48:03 (EDT)
committerPetya Sabeva2012-11-03 18:48:03 (EDT)
commite2b760e322d5dc100ef27e319241b1448ae8099f (patch)
treef038d599073a9d671c3630239ba26d11c3ad57bf
parent20806341a3d7394a4b9261a84d42936d6dfc4db4 (diff)
downloadwebtools.dali-e2b760e322d5dc100ef27e319241b1448ae8099f.zip
webtools.dali-e2b760e322d5dc100ef27e319241b1448ae8099f.tar.gz
webtools.dali-e2b760e322d5dc100ef27e319241b1448ae8099f.tar.bz2
Bug 389271 - Mapped superclasses should be abstract Java classes
-rw-r--r--jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/util/JPAEditorUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/util/JPAEditorUtil.java b/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/util/JPAEditorUtil.java
index 20005df..d373386 100644
--- a/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/util/JPAEditorUtil.java
+++ b/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/util/JPAEditorUtil.java
@@ -1036,7 +1036,7 @@ public class JPAEditorUtil {
+ "import java.io.Serializable;\n"
+ "import javax.persistence.*;\n\n" //$NON-NLS-1$
+ "@MappedSuperclass \n" //$NON-NLS-1$
- + "public class " + mappedSuperclassShortName + " implements Serializable {\n\n" //$NON-NLS-1$ //$NON-NLS-2$
+ + "public abstract class " + mappedSuperclassShortName + " implements Serializable {\n\n" //$NON-NLS-1$ //$NON-NLS-2$
+ "private static final long serialVersionUID = 1L;\n"
+ "}"; //$NON-NLS-1$
return createClassInProject(project, folder, mappedSuperclassShortName, content);