The only way I can see to do it is to start from the Configuration and then step into the related collections. Note that not all properties have a column, i.e. one-to-one.
Code:
for (Iterator it1 = config.getClassMappings(); it1.hasNext(); ) {
PersistentClass pc = (PersistentClass)it1.next();
System.out.println("Table is " + pc.getTable().getName());
for (Iterator it2 = pc.getPropertyIterator(); it2.hasNext(); ) {
Property property = (Property)it2.next();
System.out.println("Property is " + property.getName());
for (Iterator it3 = property.getColumnIterator(); it3.hasNext(); ) {
Column column = (Column)it3.next();
System.out.println("Column is " + column.getName());
}
}
}
Good luck,
Curtis ...