Again... splitting the original thread in two. Comments inline: 2014/1/18 sergivs <[email protected]>
> >> 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. > You're right, I've missed the point that the UpdatableRecord is loaded from a POJO. In that case, storing the record will always produce an INSERT. So, unfortunately, there is currently no convenient way to write something along the lines of record.insertOnDuplicateKeyUpdate(); There probably is room for improvement in that area, although we should be careful not to introduce new API that creates confusion around the various UpdatableRecord features that are already available. I have registered a feature request for this: https://github.com/jOOQ/jOOQ/issues/2961 Cheers Lukas -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
