4. Change any attribute(column in database table) by assigning new data. For example, ifyou want to changename, just assign it.

product.name = "New Name"

The issue with this method is that the primary key will also be copid. So to create a newrecord, assign None to the primary key. It will trigger the auto generation function and will have next primary key.