Unfortunately if your cat still hates the dog after two years there's not much you can do about it apart from keeping them separated. Cats have minds of their own and if they dislike something it's usually permanent.