Once you have created views on a foreign database using the optional foreignViews tool (see
DERBY-6022), you may need to import the data into your local schema. You confront various problems, including:
1) The need to order your inserts by foreign key dependencies.
2) The need to restart identity columns after the inserts.
This issue is a place to track issues like this and brainstorm solutions.