I have field in my class
public int author;
this field contains uniq id of and user stored in my database. for some reasons I can't set here an object of user just the value of his id and also the field needs to be public. Now I would like to creat auto getter for this field that is return and object. So when I do object.author
I'll receive object of User not integer. I think that is not possible but I want to check :)