/**
  * This function returns the role Id from hibernate mapping and returns the value
  *
  * @param attributeName
  * @return roleKeyId
  */
 public static String getRoleKeyId(String attributeName) {
   net.sf.hibernate.mapping.Collection col1 = cfg.getCollectionMapping(attributeName);
   Iterator colIt = col1.getElement().getColumnIterator();
   while (colIt.hasNext()) {
     Column col = (Column) colIt.next();
     return (col.getName());
   }
   return "";
 }
  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());
    }
  }