A judge has described the actions of a man who repeatedly hit his dog with a large square shovel, and later assaulted his daughter, as "callous and cruel treatment" of the animal.