refactored entity class (generated getter/setter and private/public methods)