Will my belonging automatically transfer to my husband / wife if anything did happen?
Unfortunately not the case in Spain. Unlike in the UK where there is a marriage exception, in Spain your partner would simple be taxed and treated for the part that you owned, which is usually 50%, in which they would have to pay inheritance tax.