When I rewrote hbm.xml to annotations years ago, the same thing happened.
The point is which annotation classes are imported.

Try javax.persistence.* instead of org.hibernate.annotations.*