Annotating the field is as simple as using
@MyAnnotation(...)--I'm not sure what the problem is.
I'd suggest checking out any of the annotation tutorials available on the net, including Sun's
Java site. Heck, a trivial Google search returns the following hit:
using annotations to specifiy property constraints, which is precisely what you're doing.