repository: createEntity() can detect entity automatically now