Generate mapping and entities from source