remove public attributes from the entity "Post"