Configuration cfg = new Configuration().configure("/hibernate.cfg.xml");
for (Iterator iter = cfg.getTableMappings(); iter.hasNext();) {
Table table = (Table) iter.next();
for (Iterator iterator = table.getColumnIterator(); iterator.hasNext();) {
Column column = (Column) iterator.next();
System.out.println(column.getName());
}
}
posted on 2006-07-17 11:39
崛起的程序员 阅读(432)
评论(0) 编辑 收藏