Author: tv
Date: Tue Jul 18 12:18:07 2006
New Revision: 423207
URL: http://svn.apache.org/viewvc?rev=423207&view=rev
Log:
Fixed several methods not using JavaName in Peer.vm. Thanks to
Thoralf Rickert for the patch. Fixes TORQUE-43
Modified:
db/torque/templates/trunk/src/templates/om/Peer.vm
Modified: db/torque/templates/trunk/src/templates/om/Peer.vm
URL:
http://svn.apache.org/viewvc/db/torque/templates/trunk/src/templates/om/Peer.vm?rev=423207&r1=423206&r2=423207&view=diff
==============================================================================
--- db/torque/templates/trunk/src/templates/om/Peer.vm (original)
+++ db/torque/templates/trunk/src/templates/om/Peer.vm Tue Jul 18 12:18:07 2006
@@ -1027,14 +1027,14 @@
* retrieve object using using pk values.
*
#foreach ($col in $table.PrimaryKey)
- #set ( $clo=$col.Name.toLowerCase() )
+ #set ( $clo=$col.UncapitalisedJavaName )
#set ( $cjtype= $col.JavaNative )
* @param $clo $cjtype
#end
*/
public static $table.JavaName ${retrieveMethod}(
#foreach ($col in $table.PrimaryKey)
- #set ( $clo=$col.Name.toLowerCase() )
+ #set ( $clo=$col.UncapitalisedJavaName )
#set ( $cjtype = $col.JavaNative )
#if ($comma),#end $cjtype $clo
#set ( $comma = true )
@@ -1049,7 +1049,7 @@
retVal = retrieveByPK(
#set ( $comma = false )
#foreach ($col in $table.PrimaryKey)
- #set ( $clo=$col.Name.toLowerCase() )
+ #set ( $clo=$col.UncapitalisedJavaName )
#if ($comma),#end $clo
#set ( $comma = true )
#end
@@ -1067,7 +1067,7 @@
* retrieve object using using pk values.
*
#foreach ($col in $table.PrimaryKey)
- #set ( $clo=$col.Name.toLowerCase() )
+ #set ( $clo=$col.UncapitalisedJavaName )
#set ( $cjtype= $col.JavaNative )
* @param $clo $cjtype
#end
@@ -1075,7 +1075,7 @@
*/
public static $table.JavaName ${retrieveMethod}(
#foreach ($col in $table.PrimaryKey)
- #set ( $clo=$col.Name.toLowerCase() )
+ #set ( $clo=$col.UncapitalisedJavaName )
#set ( $cjtype = $col.JavaNative )
#if ($comma),#end $cjtype $clo
#set ( $comma = true )
@@ -1086,7 +1086,7 @@
Criteria criteria = new Criteria(5);
#foreach ($col in $table.PrimaryKey)
#set ( $cup=$col.Name.toUpperCase() )
- #set ( $clo=$col.Name.toLowerCase() )
+ #set ( $clo=$col.UncapitalisedJavaName )
criteria.add($cup, $clo);
#end
List#if($enableJava5Features)<${table.JavaName}>#end v =
doSelect(criteria, con);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]