I don't know man, this doesn't sound THAT bad. What were your stats going into the hand? Maybe he read you as weak when you bet the flop and included KQ, KJ, KT, QJ, QT, JT, T9, any pair, or a weak/foldable ace. Maybe he thought he could push you off of it.

I'm not saying he made a good play, I'm not saying you could have avoided going broke. But obviously he had some reason to believe that you were weak and would fold.