Code example for Column

Methods: getValue

0
    public void testDatabaseTableNames() { 
        PersistentClass classMapping = configuration().getClassMapping( Item.class.getName() );
        Column secTabColumn = (Column) classMapping.getProperty( "specialPrice" ).getColumnIterator().next();
        assertEquals( "TAB_ITEMS_SEC", secTabColumn.getValue().getTable().getName() );
        Column tabColumn = (Column) classMapping.getProperty( "price" ).getColumnIterator().next();
        assertEquals( "TAB_ITEMS", tabColumn.getValue().getTable().getName() );
    } 
}