generates files for repository pattern