Prison sentence for cattle farmer