Recycling pkeys...
Franck Routier <[email protected]>
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Organization | Axège Sarl |
| Message-ID | <1229015837.11825.12.camel@franck-laptop> |
Hi all,
I commited a patch that will remove a record from the dataset cache if
the record has been deleted, once the deletion has been flushed.
This allows to reuse the same pkeys to create another record in the same
dataset.
Record rec : ds.find(meta, myPkey);
rec.deleteRecord();
ses.begin(ds);
ses.commitAndDetachDataSet();
ds.create(meta, myPkey); // ok, but was not.
I also added a test case (in LongTransaction test).
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/