Example usage for org.hibernate.mapping Collection getColumnIterator

List of usage examples for org.hibernate.mapping Collection getColumnIterator

Introduction

In this page you can find the example usage for org.hibernate.mapping Collection getColumnIterator.

Prototype

public Iterator<Selectable> getColumnIterator() 

Source Link

Usage

From source file:edu.wustl.common.util.dbManager.HibernateMetaData.java

License:BSD License

public static void getDATA(Class classObj) {
    org.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()) {
        //org.hibernate.mapping.Set set = (org.hibernate.mapping.Set)it.next();
        System.out.println(it.next());

    }/*ww  w . j  a va 2 s . c o m*/
}