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
崛起的程序員 閱讀(433)
評論(0) 編輯 收藏