That is a bit strange but problem was with Coupon
and UnderlyingUsage
classes. They were also extending other classes and I had to add annotations to them as well. Once annotations for whole hierarchy for Coupon
and UnderlyingUsage
were added then error disappeard.
So if someone will face the same issue please look into all classes related to the one which you change.