Ignore:
Timestamp:
02/04/10 21:56:24 (2 years ago)
Author:
kasper
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MetadataBeans/trunk/src/main/java/org/eobjects/metamodel/schema/JdbcSchema.java

    r886 r887  
    2424 
    2525 
    26 public class JdbcSchema extends Schema { 
     26public class JdbcSchema extends MutableSchema { 
    2727 
    2828        private static final long serialVersionUID = 7543633400859277467L; 
     
    4747                // Trigger the lazy-loading of the full schema, including relationships, 
    4848                // indexes and all columns 
    49                 Schema schema = new Schema(_name); 
     49                MutableSchema schema = new MutableSchema(_name); 
    5050                Table[] tables = getTables(); 
    5151                for (int i = 0; i < tables.length; i++) { 
    5252                        Table origTable = tables[i]; 
    53                         Table newTable = new Table(origTable.getName(), 
     53                        MutableTable newTable = new MutableTable(origTable.getName(), 
    5454                                        origTable.getType(), schema); 
    5555                        newTable.setQuote(origTable.getQuote()); 
     
    5858                        for (int j = 0; j < columns.length; j++) { 
    5959                                Column origColumn = columns[j]; 
    60                                 Column newColumn = new Column(origColumn.getName(), origColumn 
     60                                MutableColumn newColumn = new MutableColumn(origColumn.getName(), origColumn 
    6161                                                .getType(), newTable, origColumn.getColumnNumber(), 
    6262                                                origColumn.isNullable()); 
     
    9292                        } 
    9393 
    94                         Relationship.createRelationship(newPrimaryColumns, 
     94                        ImmutableRelationship.createRelationship(newPrimaryColumns, 
    9595                                        newForeignColumns); 
    9696                } 
Note: See TracChangeset for help on using the changeset viewer.