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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]