Set auto generated id of product for persist.