RE: Derby autogenereted keys

Thomas Fischer <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.torque.user
Message-ID <OFFDF48706.B232E961-ONC1257451.00682BB2-C1257451.00682BBB@seitenbau.net>
>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
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.