The conflict will be ongoing as long as the various Arab groups and nations - Hamas, Hezbollah, ISIS, Al Qaeda, Syria, Iran etc. refuse to acknowledge Israel's right to exist.
Hamas can hardly claim the high moral ground while it uses hospitals as bases, and the population of Gaza as human shields.