return an entity object on fetch by id method