diff options
author | nhauge | 2009-08-25 14:10:49 -0400 |
---|---|---|
committer | nhauge | 2009-08-25 14:10:49 -0400 |
commit | 9f802b20e265630cc99b7c95728926fcf8c413cd (patch) | |
tree | 0e2ef5d46bf0da3aefc94c5a7cee7e3afb531ea3 | |
parent | b8ba7a98b378b27048e1d5e35f73176584a9ff9b (diff) | |
download | webtools.dali-9f802b20e265630cc99b7c95728926fcf8c413cd.tar.gz webtools.dali-9f802b20e265630cc99b7c95728926fcf8c413cd.tar.xz webtools.dali-9f802b20e265630cc99b7c95728926fcf8c413cd.zip |
287027 - remove extra comma on join table columns - patch from Danny.
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.gen/templates/entities/join.vm | 12 |
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 |