I checked around, since they are just rotating, they won't get hit by the entry hazards. They only take effect when your pokemon enters in the battle, hence the name. If people thought stealth Rock was broken in generation 4, imagine how broken it would be if rotations triggered them as well.