> I just checked the (old) javadoc and i must admit that > UpdatableRecord's store() doc did explain this implicitly. The new > description is much better! > > I was looking for a way to easily "clone" an existing record last week > but i couldn't find it and thought it was impossible, but it seems i > have now accidentally found out how to do it :)
Thinking about this again, maybe an UpdatableRecord.copy() method might be helpful. It would set the primary key fields to null. After copying a record, client code must either - Explicitly set new values for the primary key fields - Assume that storing the record (i.e. inserting it), will generate ID's using triggered sequences, identities, or auto_increment flags, depending on the RDBMS This will be part of the next release: https://sourceforge.net/apps/trac/jooq/ticket/672
