Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2009-04-14 10:59:43 -0400
committerkmoore2009-04-14 10:59:43 -0400
commit0e28a2ca504a664ef325895a19d1b2749255cb00 (patch)
treefb55120b6390cb300ae2d0a1134d251578d49d05
parentae2730f3d7b62837ca8b54799b71eabb7fe6156c (diff)
downloadwebtools.dali-0e28a2ca504a664ef325895a19d1b2749255cb00.tar.gz
webtools.dali-0e28a2ca504a664ef325895a19d1b2749255cb00.tar.xz
webtools.dali-0e28a2ca504a664ef325895a19d1b2749255cb00.zip
268547 - patch from danny.ju@oracle.com - Entity Generation - unnecessary column name written out when insertable/updatable are written
-rw-r--r--jpa/plugins/org.eclipse.jpt.gen/templates/entities/column.vm8
1 files changed, 5 insertions, 3 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.gen/templates/entities/column.vm b/jpa/plugins/org.eclipse.jpt.gen/templates/entities/column.vm
index d8e7f32388..5d1f13c98d 100644
--- a/jpa/plugins/org.eclipse.jpt.gen/templates/entities/column.vm
+++ b/jpa/plugins/org.eclipse.jpt.gen/templates/entities/column.vm
@@ -19,12 +19,14 @@
#end
#set ($members = "")
#if ( !$column.default || $customizer.generateDDLAnnotations )
-#set ($members = "name=$customizer.quote($column.name)")
+#if ( !${column.defaultname} )
+#append($members "name=$customizer.quote($column.name)" )
+#end
#if (!$column.insertable)
-#set ($members = "$members, insertable=false")
+#append(${members} "insertable=false")
#end
#if (!$column.updateable)
-#set ($members = "$members, updatable=false")
+#append(${members} "updatable=false")
#end
#end
#if( $customizer.generateDDLAnnotations )

Back to the top