To do good deeds alone is not good enough. The mind should also be purified so that it does not attach even to good deeds or whatever. In practice, however, Buddhism is not as pure as it should be. People often 'accumulate' meritorious deeds in a spiritualistically materialistic fashion. This practice is implicitly tolerated so that less spiritually advanced people will not go astray.
Hatred is possible only if there is love, and vice versa.