A member of the Irish Defence Forces has been jailed for eight-and-a-half years for the rape of a fellow soldier at a Dublin hotel.