X-RAY PROPERTIES OF GALAXY CLUSTERS AND GROUPS FROM A COSMOLOGICAL HYDRODYNAMICAL SIMULATION