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