db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sperlich, Tino" <t.sperl...@hpc-hamburg.de>
Subject AW: sequence
Date Thu, 02 Sep 2004 08:41:15 GMT
Hi,

you would also need to define that the method to 
generate ids is "native". you can do that for all tables 
in your schema.xml using 

...
<database name="dmw" defaultIdMethod="native">
...

or you do it for each table that is affected:
...
	<table name="DEPOT_ORDER_LIFECYCLE" idMethod="native" >
...

then torque generates the right classes.

regards,
Tino

-----Urspr√ľngliche Nachricht-----
Von: Ferruh Zamangoer [mailto:ferruh.zamangoer@gistec-online.de]
Gesendet: Donnerstag, 2. September 2004 10:18
An: Apache Torque Users List
Betreff: AW: sequence


Hi,

for example you must define a sequence in your project-schema.xml like that

<table name="address_b322" description="Address_B322">
.... define your column here .....
<id-method-parameter name="ADDRESS_ID_SEQ" value="ADDRESS_ID_SEQ"/> //Thats
the sequence defintion
</table>

Then you must define in your database the sequence ADDRESS_ID_SEQ.

Regards
Ferruh

-----Urspr√ľngliche Nachricht-----
Von: karim [mailto:a.wahhabi@free.fr]
Gesendet: Mittwoch, 1. September 2004 22:20
An: Apache Torque Users List
Betreff: sequence


how work sequence in torque ?
give me one example please

thanks


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


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


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


Mime
View raw message