Package org.hibernate.cfg.reveng

Examples of org.hibernate.cfg.reveng.DatabaseCollector.iterateTables()


    reader.readDatabaseSchema( dc, null, null );
   
    assertEquals(mockedMetaDataDialect.gottenTables.size(),1);
    assertEquals(mockedMetaDataDialect.gottenTables.get(0),"CHILD");
   
    Iterator iterator = dc.iterateTables();
    Table firstChild = (Table) iterator.next();
    assertEquals(firstChild.getName(), "CHILD");
    assertFalse(iterator.hasNext());
   
    assertFalse("should not record foreignkey to table it doesn't know about yet",firstChild.getForeignKeyIterator().hasNext());
View Full Code Here


   
    assertEquals(mockedMetaDataDialect.gottenTables.size(),1);
    assertEquals(mockedMetaDataDialect.gottenTables.get(0),"MASTER");
   
   
    iterator = dc.iterateTables();
    assertNotNull(iterator.next());
    assertNotNull(iterator.next());
    assertFalse(iterator.hasNext());
   
    Table table = dc.getTable( null, null, "CHILD" );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.