An abusive man who locked his wife in their home with their baby, subjecting her to violent daily beatings, has been jailed for up to 12 years.