format entity class