Setting properties with annotations