summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNan Li2012-10-01 14:15:26 (EDT)
committerNeil Hauge2012-10-01 14:15:26 (EDT)
commit2974812664402bb5d5bab2cf7000364562a1611b (patch)
tree1de31f09782739c6ac501945924fc8a52b6d5609
parent542cf3b40c94919e5e0ddf90c397acef27b2672e (diff)
downloadwebtools.dali-2974812664402bb5d5bab2cf7000364562a1611b.zip
webtools.dali-2974812664402bb5d5bab2cf7000364562a1611b.tar.gz
webtools.dali-2974812664402bb5d5bab2cf7000364562a1611b.tar.bz2
381112 - Fix NPE by removing dead code.
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.gen/templates/entities/join.vm3
1 files changed, 0 insertions, 3 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.gen/templates/entities/join.vm b/jpa/plugins/org.eclipse.jpt.jpa.gen/templates/entities/join.vm
index a98f873..faa85f6 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.gen/templates/entities/join.vm
+++ b/jpa/plugins/org.eclipse.jpt.jpa.gen/templates/entities/join.vm
@@ -54,9 +54,6 @@
#if ($role.referrerColumns.size() == 1)
#set ($column = $role.referrerColumns.get(0))
#set ($referencedColumn = $role.getReferencedColumn(${column.name}))
-#set ($referencedTableName = $customizer.convertToJavaStringLiteral($role.getReferencedTable().getName()) )
-#set( $referencedTablePkName = $customizer.convertToJavaStringLiteral($role.getReferencedTable().getPrimaryKeyColumn().name) )
-#set( $computedJoinColumnName = $customizer.convertToJavaStringLiteral("${role.propertyName}_${referencedTablePkName}") )
#set( $isDefaultJoinColumnName = $column.isDefaultJoinColumnName( ${role.propertyName}) )
#if( ! $isDefaultJoinColumnName )
#joinColumn($column $referencedColumn)