There is a flag on DbAdapter that tells Cayenne whether to rely on DB for
autoincrement or not... It is turned on for MySQL and SQLServer and off
for everybody else (also you can manually flip it in runtime if you need
to). So mapping is still DB-independent, and you can use autoincrement on
one DB and then easily switch to another that doesn't support it.
Andrus
> I prefer to go database independent, so I think all your
> requirements are better put to the framework.
>
> Problem with this could be, if there are softwareparts
> that not have cayenne as base ...
>
>
> cayenne-use..bjectstyle.org schrieb am 18.01.05 21:17:23:
>
>> A few of questions:
>>
>> 1) What is the status for support of db-based PK generation in 1.2?
>> Is it there?
>>
>> 2) Does (or will) 1.2 come with a MySQL adaptor that directly
>> implements support for native-pk generation?
>>
>> 2a) Or is the plan to support the retrieval of db-generated keys in an
>> architectural sense, but still leave it as an exercise for the user to
>> subclass the MySQL adaptor?
>>
>> Thanks much. I'll keep dealing with Hibernate, for now, but I'm very
>> much hoping Cayenne can save me soon. :-)
>>
>> - Gary
>
>
> ______________________________________________________________
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
This archive was generated by hypermail 2.0.0 : Wed Jan 19 2005 - 09:05:20 EST