reader to entity