Setter annotation is not working in Java class