db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thoralf Rickert <thoralf.rick...@cadooz.de>
Subject AW: Derby autogenereted keys
Date Sat, 24 May 2008 06:38:40 GMT

yes that's it. I forgot the defaultIdMethod. That happens when I don't copy & paste the
definition from one file to another. Definitely user-fault!


-----Urspr?ngliche Nachricht-----
Von: Thomas Fischer [mailto:fischer@seitenbau.net]
Gesendet: Donnerstag, 22. Mai 2008 20:58
An: Apache Torque Users List
Betreff: RE: Derby autogenereted keys

>Just add the attribute:
>    defaultIdMethod="native"
>to the <database ...> tag.  This will create the SQL needed for
>autoincrement fields.

To be precise, for all primary keys. The autoincrement attribute is not needed at all and
should not be used; better use the idMethod and defaultIdMethod attributes.


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

View raw message