implementation of create rule for entity class