Author: tfischer
Date: Fri Mar 5 21:48:26 2010
New Revision: 919630
URL: http://svn.apache.org/viewvc?rev=919630&view=rev
Log:
- fixed wrong option name when reading initialIdValue
- added a hack which generates different id values for the different tables
Modified:
db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/idtable/templates/idtable.vm
Modified:
db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/idtable/templates/idtable.vm
URL:
http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/idtable/templates/idtable.vm?rev=919630&r1=919629&r2=919630&view=diff
==============================================================================
---
db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/idtable/templates/idtable.vm
(original)
+++
db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/idtable/templates/idtable.vm
Fri Mar 5 21:48:26 2010
@@ -17,11 +17,10 @@
##
##
#set ( $tableElements = $torqueGf.getChildren("table") )
-#set ( $initialIdValue = $torqueGf.option("torque.idbroker.initialIdValue") )
+#set ( $initialIdValue = $torqueGf.option("torque.idBroker.initialIdValue") )
#set ( $initialIdStep = $torqueGf.option("torque.idbroker.initialIdStep") )
#set ( $initialId = $torqueGf.option("torque.idbroker.initialId") )
#foreach ($tableElement in $tableElements)
-#set ( $tableName = $tableElement.getAttribute("name") )
-insert into ID_TABLE (id_table_id, table_name, next_id, quantity) VALUES
($initialId, '$tableName', $initialIdValue, $initialIdStep);
-#set ( $initialId = $initialId + 1 )
+ #set ( $tableName = $tableElement.getAttribute("name") )
+insert into ID_TABLE (id_table_id, table_name, next_id, quantity) VALUES
($initialId + $velocityCount - 1, '$tableName', $initialIdValue,
$initialIdStep);
#end
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]