db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r476577 - in /db/torque/templates/trunk/src/templates/om: Object.vm ObjectWithManager.vm
Date Sat, 18 Nov 2006 18:09:27 GMT
Author: tv
Date: Sat Nov 18 10:09:26 2006
New Revision: 476577

URL: http://svn.apache.org/viewvc?view=rev&rev=476577
Log:
Attempt to fix a NPE in Torque objects when Torque has been 
shutdown and restarted

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=476577&r1=476576&r2=476577
==============================================================================
--- db/torque/templates/trunk/src/templates/om/Object.vm (original)
+++ db/torque/templates/trunk/src/templates/om/Object.vm Sat Nov 18 10:09:26 2006
@@ -1295,8 +1295,7 @@
     public void save() throws $saveException
     {
   #if ($complexObjectModel)
-        save(${table.JavaName}Peer.getMapBuilder()
-                .getDatabaseMap().getName());
+        save(${table.JavaName}Peer.DATABASE_NAME);
   #else
         if (isModified())
         {

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=476577&r1=476576&r2=476577
==============================================================================
--- db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm (original)
+++ db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm Sat Nov 18 10:09:26 2006
@@ -1309,8 +1309,7 @@
     public void save() throws $saveException
     {
   #if ($complexObjectModel)
-        save(${table.JavaName}Peer.getMapBuilder()
-                .getDatabaseMap().getName());
+        save(${table.JavaName}Peer.DATABASE_NAME);
   #else
         if (isModified())
         {



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message