From: Eivind W. <ei...@us...> - 2005-11-13 22:05:33
|
User: eivindw Date: 05/11/13 14:05:27 Modified: plugins/entitybean/src/middlegen/plugins/entitybean entity-cmp-20.vm Log: Fix many2many bug for cmp20. Revision Changes Path 1.75 +3 -11 middlegen/plugins/entitybean/src/middlegen/plugins/entitybean/entity-cmp-20.vm Index: entity-cmp-20.vm =================================================================== RCS file: /cvsroot/middlegen/middlegen/plugins/entitybean/src/middlegen/plugins/entitybean/entity-cmp-20.vm,v retrieving revision 1.74 retrieving revision 1.75 diff -u -w -r1.74 -r1.75 --- entity-cmp-20.vm 15 Jan 2005 21:20:26 -0000 1.74 +++ entity-cmp-20.vm 13 Nov 2005 22:05:27 -0000 1.75 @@ -339,10 +339,6 @@ public abstract $column.javaType ${column.getterName}(); /** -#if($column.remarksName) - * ${column.remarks} - * -#end * Sets the $column.variableName * * @param $column.variableName the new $column.variableName value @@ -378,11 +374,13 @@ #end #end /** +#if( !$many2many ) #foreach( $columnMap in $relationshipRole.targetRole.columnMaps ) #if(${table.getColumn($columnMap.foreignKey).remarksName}) * ${table.getColumn($columnMap.foreignKey).remarks} #end #end +#end * * This is a $directionalityText $cardinalityText relationship CMR method * @@ -548,12 +546,6 @@ public abstract $table.getClassName($relationshipRole) $table.getGetterName($relationshipRole)(); /** -#foreach( $columnMap in $relationshipRole.targetRole.columnMaps ) -#if(${table.getColumn($columnMap.foreignKey).remarksName}) - * ${table.getColumn($columnMap.foreignKey).remarks} - * -#end -#end #if( $relationshipRole.targetMany ) * Sets a collection of related $target.localClassName * @@ -576,7 +568,7 @@ ## END if($table.beanViewType=="remote") #macro ( cmrSetters $relationshipRoles ) // Set CMR fields -#foreach($relationshipRole in $relationshipRoles) +#foreach($relationshipRole in $table.relationshipRoles) #set( $target = $relationshipRole.getTarget($plugin)) $table.getSetterName($relationshipRole)($table.getVariableName($relationshipRole)); #end |