public static void getDATA(Class classObj) { net.sf.hibernate.mapping.Collection coll = cfg.getCollectionMapping( "edu.wustl.catissuecore.domain.CollectionProtocolEvent.specimenRequirementCollection"); // System.out.println(map); System.out.println(coll.getCollectionTable().getName()); System.out.println(coll.getTable().getName()); // System.out.println(); Iterator it = coll.getColumnIterator(); while (it.hasNext()) { // net.sf.hibernate.mapping.Set set = (net.sf.hibernate.mapping.Set)it.next(); System.out.println(it.next()); } }