Change private properties to protected (in entities)

change private protperties to protected, this is needed to serialize objects with those entities