SDataSet should handle generated keys

Franck Routier <[email protected]>
Newsgroups gmane.comp.java.orm.simpleorm
Message-ID <1218406062.6866.12.camel@franck-laptop>
Hi,

I think there is a hole with "records live only in SDataSet" when coming
to generated primary keys: if we want to create a new record that has a
generated pkey, we need a way to create a "temporary" generated key.

This would also mean we need to replace this key with the true one when
the session will begin. Messy.
This change should also be propagated to referencing records...

Before we didn't have the problem, as records didn't need to have a
database-like identity until attached. But now they are attached to the
dataset from the begining...

Any idea on that ?

Franck



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/SimpleORM/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/SimpleORM/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
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.