How un-link two ONE to ONE related objects?

Hi you all,
I have the following table schema:

Car {
   name : STRING
   colour: STRING

} 

Person {
   name : STRING,
   surname : STRING,
   car : Car [1 to 1 relation with Car table]
 }

When I try to update the Person.car related object, via the console I need to “Unlink the related object”.
http://support.backendless.com/public/attachments/e4467298c535bfd8c935ec2d346c1e84.png</img>
http://support.backendless.com/public/attachments/54a720c851a364ffb9c5b39d077700b8.png</img>

    Can you explain why I need to do shuch a thing? Can't I just add the new Car object, without unlinking the old one? Can you show me please how can I do the same thing via Java code, if I want to update a record?
Thank you for your help! :)

Hi,

In console you mustn’t unlink relation before setting new one. You can just select new radio button and press “Update Related Object” button.

You can know more about updating related records via Java code from this article.

Regards,

Denys

Thank you for your answer!

Regards,
Starscream