- Timestamp:
- 02/04/10 21:56:24 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MetadataBeans/trunk/src/main/java/org/eobjects/metamodel/schema/JdbcSchema.java
r886 r887 24 24 25 25 26 public class JdbcSchema extends Schema {26 public class JdbcSchema extends MutableSchema { 27 27 28 28 private static final long serialVersionUID = 7543633400859277467L; … … 47 47 // Trigger the lazy-loading of the full schema, including relationships, 48 48 // indexes and all columns 49 Schema schema = newSchema(_name);49 MutableSchema schema = new MutableSchema(_name); 50 50 Table[] tables = getTables(); 51 51 for (int i = 0; i < tables.length; i++) { 52 52 Table origTable = tables[i]; 53 Table newTable = newTable(origTable.getName(),53 MutableTable newTable = new MutableTable(origTable.getName(), 54 54 origTable.getType(), schema); 55 55 newTable.setQuote(origTable.getQuote()); … … 58 58 for (int j = 0; j < columns.length; j++) { 59 59 Column origColumn = columns[j]; 60 Column newColumn = newColumn(origColumn.getName(), origColumn60 MutableColumn newColumn = new MutableColumn(origColumn.getName(), origColumn 61 61 .getType(), newTable, origColumn.getColumnNumber(), 62 62 origColumn.isNullable()); … … 92 92 } 93 93 94 Relationship.createRelationship(newPrimaryColumns,94 ImmutableRelationship.createRelationship(newPrimaryColumns, 95 95 newForeignColumns); 96 96 }
Note: See TracChangeset
for help on using the changeset viewer.
