>> Can you please update the documentation to say how to *de*tach a record? Can >> I call attach(null)? > > I will: > https://github.com/jOOQ/jOOQ/issues/1685
N.B: I've checked the integration tests. The most succinct way to
detach a record is to attach null to it:
store = create.newRecord(TBookStore());
store.setValue(TBookStore_NAME(), "Barnes and Noble");
store.attach(null);
try {
store.store();
fail();
}
catch (DetachedException expected) {}
Cheers
Lukas
