db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1338867 - /db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/mapBuilder/initDatabaseMap.vm
Date Tue, 15 May 2012 19:54:35 GMT
Author: tfischer
Date: Tue May 15 19:54:35 2012
New Revision: 1338867

URL: http://svn.apache.org/viewvc?rev=1338867&view=rev
Log:
do not call DatabaseMapInit class if it is not generated

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/mapBuilder/initDatabaseMap.vm

Modified: db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/mapBuilder/initDatabaseMap.vm
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/mapBuilder/initDatabaseMap.vm?rev=1338867&r1=1338866&r2=1338867&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/mapBuilder/initDatabaseMap.vm
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/mapBuilder/initDatabaseMap.vm
Tue May 15 19:54:35 2012
@@ -33,7 +33,9 @@
 #set ( $databaseOptionElements = $databaseElement.getChildren("option") )
     public static void initDatabaseMap()
     {
+#if (${generateMapInit} == "true")
         ${baseDatabaseMapInitClassName}.init();
+#end
 ## TODO the following needs not be executed for every table
 ## but it causes no harm
 #if (${databaseOptionElements.size()} > 0)



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