I found UpdataleRecord.store() in the API. That will work for updates, which will be helpful. Is there a similar convenient way of doing an equivalent of INSERT ... ON DUPLICATE KEY IGNORE using a Record instance created from a POJO?P.S. actually, I just tried it and read the API description more carefully. It won't do an update if the UpdatableRecord was loaded from a POJO. So this question also remains open.
A method like record.insertOnDuplicateKeyUpdate() would imply that all (non-key) fields should be updated from the given record instance. So it is not as comprehensive as the other, explicut aporoach, but I think it would be quite useful in some cases.
insertOnDuplicateKeyIgnore() would also be useful.
Thanks!
A method like record.insertOnDuplicateKeyUpdate() would imply that all (non-key) fields should be updated from the given record instance. So it is not as comprehensive as the other, explicut aporoach, but I think it would be quite useful in some cases.
insertOnDuplicateKeyIgnore() would also be useful.