In order for @properties to work thoroughly the class should be a subclass of item. when The category is not a subclass of item then The 1st time you are trying access the setter it truly makes a completely new attribute Using the shorter name as opposed to accessing from https://gurugramluxuryapartments.blogspot.com