db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r757228 - /db/torque/torque4/trunk/torque-templates/src/main/resources/om/DatabaseMapInit.vm
Date Sun, 22 Mar 2009 18:16:22 GMT
Author: tv
Date: Sun Mar 22 18:16:21 2009
New Revision: 757228

URL: http://svn.apache.org/viewvc?rev=757228&view=rev
Log:
Don't use deprecated methods in DatabaseMapInit.vm.

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/resources/om/DatabaseMapInit.vm

Modified: db/torque/torque4/trunk/torque-templates/src/main/resources/om/DatabaseMapInit.vm
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/resources/om/DatabaseMapInit.vm?rev=757228&r1=757227&r2=757228&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/resources/om/DatabaseMapInit.vm (original)
+++ db/torque/torque4/trunk/torque-templates/src/main/resources/om/DatabaseMapInit.vm Sun
Mar 22 18:16:21 2009
@@ -16,6 +16,7 @@
 ## under the License.
 package ${packageMap};
 
+import org.apache.torque.Torque;
 import org.apache.torque.TorqueException;
 
 /**
@@ -31,8 +32,10 @@
 	public static final void init()
 		throws TorqueException
 	{
-#foreach ( $peer in $peerNames )
-        ${peer}.getMapBuilder();
+#foreach ($tbl in $database.Tables)
+  #if ( !$tbl.isAlias() && !$tbl.isForReferenceOnly() )
+		Torque.getMapBuilder(${tbl.JavaName}MapBuilder.CLASS_NAME);
+  #end
 #end
     }
 }



---------------------------------------------------------------------
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