Annotating domain classes