Hi Thomas

Thomas Fischer wrote:
I will commit the patch in the next days. Remind me if I forget it.
Reminder! :-)

As you are at it: I've got one more thing to patch. I found that the latest generator templates do not generate a cache update during save(con) correctly because of a failing #set statement. Diff attached.

Bye, Thomas.

--- ObjectWithManager.vm.orig   Tue Feb 15 14:36:14 2005
+++ ObjectWithManager.vm        Tue Feb 15 14:36:40 2005
@@ -1107,7 +1107,11 @@
                     ${table.JavaName}Peer.doUpdate(($table.JavaName) this, 
con);
                 }
 
-  #set ($tableHasPrimaryKey = $table.PrimaryKey.size() > 0)
+  #if ($table.PrimaryKey.size() > 0)
+    #set ($tableHasPrimaryKey = "true")
+  #else
+    #set ($tableHasPrimaryKey = "false")
+  #end
   #if ($tableHasPrimaryKey)
     #set ($interfaceName = $table.JavaName)
     #if ($table.Interface)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to