AW: Derby autogenereted keys

Thoralf Rickert <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.torque.user
Message-ID <A864307CE9C0D54191507125C95FC59E578B21DD@srv-exchange.cadooz-ag.intern>
Hi,

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!

Thanks
Thoralf



-----Urspr?ngliche Nachricht-----
Von: Thomas Fischer [mailto:[email protected]]
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.

   Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
smime.p7s (application/x-pkcs7-signature, 1.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.