db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manske, Michael" <Michael.Man...@dat.de>
Subject AW: Auto generated IDs
Date Fri, 30 May 2003 09:21:09 GMT
Hi,

you can use idMethod="native" on per table level or
defaultIdMethod="native" on database level in your xml schema.
After executing the save() method the autogenerated id should be
set correctly in your new record and you can get it as usual 
with getYourAutogeneratedID()...

Michael

> -----Urspr√ľngliche Nachricht-----
> Von: Derek Hardy [mailto:derek.hardy@teknosys.co.uk]
> Gesendet: Freitag, 30. Mai 2003 11:12
> An: Torque User Mailing List
> Betreff: Auto generated IDs
> 
> 
> Hi
> 
> I'm using a MySQL database with Torque to create new records.
> 
> The tables have a unique sequence number which is auto generated.
> 
> Is there anyway to get this ID when I'm creating a new record with the
> save() method?
> 
> Thanks in advance
> 
> Derek
> 

Mime
View raw message