Implement getOneById and findOne.