repository: entity class is not required in constructor