The Repository Module supports Export and Import. So, you might want to manually create one record and then export. Look at that file to see the format that is exported.
Then, export your existing data in whatever way you can export it, edit it into an XML file that matches the Repository's Export/Import format, and then import that data into the Repository module.
No modification or recompiling will be necessary.