Author: tv
Date: Sat Feb 10 13:24:30 2007
New Revision: 505768
URL: http://svn.apache.org/viewvc?view=rev&rev=505768
Log:
Avoid velocity errors due to undefined variable in Java-comment.
This renders the comment useless, so I commented it out.
Modified:
db/torque/templates/trunk/src/templates/om/Object.vm
db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm
Modified: db/torque/templates/trunk/src/templates/om/Object.vm
URL:
http://svn.apache.org/viewvc/db/torque/templates/trunk/src/templates/om/Object.vm?view=diff&rev=505768&r1=505767&r2=505768
==============================================================================
--- db/torque/templates/trunk/src/templates/om/Object.vm (original)
+++ db/torque/templates/trunk/src/templates/om/Object.vm Sat Feb 10 13:24:30
2007
@@ -429,16 +429,15 @@
$varName =
${className}Peer.retrieveByPK(SimpleKey.keyFor($arglist));
#end
#end
-
- /* The following can be used instead of the line above to
- guarantee the related object contains a reference
- to this object, but this level of coupling
- may be undesirable in many circumstances.
- As it can lead to a db query with many results that may
- never be used.
- $className obj = ${className}Peer.retrieveByPK($arglist);
- obj.add${pCollName}(this);
- */
+## /* The following can be used instead of the line above to
+## guarantee the related object contains a reference
+## to this object, but this level of coupling
+## may be undesirable in many circumstances.
+## As it can lead to a db query with many results that may
+## never be used.
+## $className obj = ${className}Peer.retrieveByPK($arglist);
+## obj.add${pCollName}(this);
+## */
}
#end
return $varName;
@@ -472,16 +471,15 @@
$varName =
${className}Peer.retrieveByPK(SimpleKey.keyFor($arglist), connection);
#end
#end
-
- /* The following can be used instead of the line above to
- guarantee the related object contains a reference
- to this object, but this level of coupling
- may be undesirable in many circumstances.
- As it can lead to a db query with many results that may
- never be used.
- $className obj = ${className}Peer.retrieveByPK($arglist,
connection);
- obj.add${pCollName}(this);
- */
+## /* The following can be used instead of the line above to
+## guarantee the related object contains a reference
+## to this object, but this level of coupling
+## may be undesirable in many circumstances.
+## As it can lead to a db query with many results that may
+## never be used.
+## $className obj = ${className}Peer.retrieveByPK($arglist,
connection);
+## obj.add${pCollName}(this);
+## */
}
return $varName;
}
Modified: db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm
URL:
http://svn.apache.org/viewvc/db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm?view=diff&rev=505768&r1=505767&r2=505768
==============================================================================
--- db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm (original)
+++ db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm Sat Feb 10
13:24:30 2007
@@ -433,16 +433,15 @@
#else
$varName = ${interfaceName}Manager.getInstance($arglist);
#end
-
- /* The following can be used instead of the line above to
- guarantee the related object contains a reference
- to this object, but this level of coupling
- may be undesirable in many circumstances.
- As it can lead to a db query with many results that may
- never be used.
- $className obj = ${className}Peer.retrieveByPK($arglist);
- obj.add${pCollName}(this);
- */
+## /* The following can be used instead of the line above to
+## guarantee the related object contains a reference
+## to this object, but this level of coupling
+## may be undesirable in many circumstances.
+## As it can lead to a db query with many results that may
+## never be used.
+## $className obj = ${className}Peer.retrieveByPK($arglist);
+## obj.add${pCollName}(this);
+## */
}
#end
return $varName;
@@ -489,16 +488,15 @@
${interfaceName}Manager.putInstance($varName);
}
#end
-
- /* The following can be used instead of the line above to
- guarantee the related object contains a reference
- to this object, but this level of coupling
- may be undesirable in many circumstances.
- As it can lead to a db query with many results that may
- never be used.
- $className obj = ${className}Peer.retrieveByPK($arglist,
connection);
- obj.add${pCollName}(this);
- */
+## /* The following can be used instead of the line above to
+## guarantee the related object contains a reference
+## to this object, but this level of coupling
+## may be undesirable in many circumstances.
+## As it can lead to a db query with many results that may
+## never be used.
+## $className obj = ${className}Peer.retrieveByPK($arglist,
connection);
+## obj.add${pCollName}(this);
+## */
}
return $varName;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]