map = HibernateUtil.getSession().getSessionFactory().getAllClassMetadata();
Iterator it = map.entrySet().iterator();
while (it.hasNext()) {
Map.Entry pairs = (Map.Entry) it.next();
ClassMetadata cmd = (ClassMetadata) pairs.getValue();
}
} catch (HibernateException e) {
// TODO Auto-generated catch block