db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/src/templates/om Object.vm ObjectWithManager.vm
Date Wed, 28 May 2003 06:16:54 GMT
mpoeschl    2003/05/27 23:16:54

  Modified:    src/templates/om Tag: TORQUE_3_0_BRANCH Object.vm
                        ObjectWithManager.vm
  Log:
  TRQS122: Join methods are not generated.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.54.2.3  +5 -1      db-torque/src/templates/om/Attic/Object.vm
  
  Index: Object.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/templates/om/Attic/Object.vm,v
  retrieving revision 1.54.2.2
  retrieving revision 1.54.2.3
  diff -u -r1.54.2.2 -r1.54.2.3
  --- Object.vm	27 May 2003 19:58:58 -0000	1.54.2.2
  +++ Object.vm	28 May 2003 06:16:53 -0000	1.54.2.3
  @@ -685,7 +685,11 @@
      #end
   
       #set ( $tblFK2 = $table.Database.getTable($fk2.ForeignTableName) )
  -    #set ( $doJoinGet = !$tblFK2.isForReferenceOnly())
  +    #if ($tblFK2.isForReferenceOnly())
  +        #set ($doJoinGet = false)
  +    #else
  +        #set ($doJoinGet = true)
  +    #end
       #set ( $relatedByCol2 = "" )
       #foreach ($columnName in $fk2.LocalColumns)
           #set ( $column = $tblFK.getColumn($columnName) )
  
  
  
  1.29.2.3  +6 -2      db-torque/src/templates/om/Attic/ObjectWithManager.vm
  
  Index: ObjectWithManager.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/templates/om/Attic/ObjectWithManager.vm,v
  retrieving revision 1.29.2.2
  retrieving revision 1.29.2.3
  diff -u -r1.29.2.2 -r1.29.2.3
  --- ObjectWithManager.vm	27 May 2003 19:58:58 -0000	1.29.2.2
  +++ ObjectWithManager.vm	28 May 2003 06:16:54 -0000	1.29.2.3
  @@ -662,7 +662,11 @@
      #end
   
       #set ( $tblFK2 = $table.Database.getTable($fk2.ForeignTableName) )
  -    #set ( $doJoinGet = !$tblFK2.isForReferenceOnly())
  +    #if ($tblFK2.isForReferenceOnly())
  +        #set ($doJoinGet = false)
  +    #else
  +        #set ($doJoinGet = true)
  +    #end
       #set ( $relatedByCol2 = "" )
       #foreach ($columnName in $fk2.LocalColumns)
           #set ( $column = $tblFK.getColumn($columnName) )
  @@ -1150,7 +1154,7 @@
   #set ( $argList = "" )
   #set ( $argList2 = "" )
   #set ( $comma = "" )
  -#foreach ($col in $table.PrimaryKeys)
  +#foreach ($col in $table.PrimaryKey)
       #if ($complexObjectModel)
           #if ( $col.isForeignKey() || ($col.Referrers.size() > 0) )
               #set ( $throwsClause = "throws TorqueException" )
  
  
  

Mime
View raw message