Create a record mapper from a class mapper.