Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornhauge2009-08-25 18:08:59 +0000
committernhauge2009-08-25 18:08:59 +0000
commit076a0d296ebb30b6269e4e11ed4be4973d177a6b (patch)
tree881173815666c5895152330f4fc4215c6da8136c
parentfb1be8b2ae72d4b6073a89acd2eca59400a118c0 (diff)
downloadwebtools.dali-076a0d296ebb30b6269e4e11ed4be4973d177a6b.tar.gz
webtools.dali-076a0d296ebb30b6269e4e11ed4be4973d177a6b.tar.xz
webtools.dali-076a0d296ebb30b6269e4e11ed4be4973d177a6b.zip
287027 - remove extra comma on join table columns - patch from Danny.
-rw-r--r--jpa/plugins/org.eclipse.jpt.gen/templates/entities/join.vm12
1 files changed, 10 insertions, 2 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.gen/templates/entities/join.vm b/jpa/plugins/org.eclipse.jpt.gen/templates/entities/join.vm
index 8e211d3584..261892253c 100644
--- a/jpa/plugins/org.eclipse.jpt.gen/templates/entities/join.vm
+++ b/jpa/plugins/org.eclipse.jpt.gen/templates/entities/join.vm
@@ -30,15 +30,23 @@
#foreach ($column in $role.referrerColumns)
#set ($referencedColumn = $role.getReferencedColumn(${column.name}))
##$referencedColumn is the column in the join table
- #joinColumn($referencedColumn $column),
+ #joinColumn($referencedColumn $column)
+#if ($velocityCount < $role.referrerColumns.size() )
+,
+#end
#end
+
}
, inverseJoinColumns={
#foreach ($column in $role.referencedColumns)
#set ($referencedColumn = $role.getReferrerColumn(${column.name}))
##$referencedColumn is the column in the join table
- #joinColumn($referencedColumn $column),
+ #joinColumn($referencedColumn $column)
+#if ($velocityCount < $role.referencedColumns.size() )
+,
+#end
#end
+
}
)
#else

Back to the top