A hydraulic rotational drive for rotating load-handling equipment relative to a crane arm is provided with a shaft, which has first securing means for connecting the shaft to the load-handling equipment or the crane arm, a shaft bearing, which has second securing means for connecting the shaft bearing to the crane arm or the load-handling equipment, vanes arranged in the shaft which can be acted on by oil via an oil feed and an oil discharge for the transmission of a torque to the shaft, wherein the rotational drive has a rotary encoder for the detection of the angular position of the shaft relative to the shaft bearing.