entityClass taken from Entity