he did a military career from cadet to captain of cordoba's regiment