Well, stupid mistake. Forgot to add getters and setters to my class. Not sure how I overlooked that.
(I should have deleted the question to hide my embarrassment!)