Example usage for org.hibernate.mapping Constraint getColumnIterator

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

Introduction

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

Prototype

public Iterator<Column> getColumnIterator() 

Source Link

Usage

From source file:com.vecna.dbDiff.hibernate.HibernateMappingsConverter.java

License:Apache License

/**
 * Convert a Hibernate constraint (unique key, primary key) representation to a {@link RelationalIndex}.
 * @param mappedConstraint hibernate constraint.
 * @param table the table the constraint applies to.
 * @return a {@link RelationalIndex} representation of the same constraint
 *//*from  www .ja v a 2 s . c  o m*/
private RelationalIndex convertIndex(Constraint mappedConstraint, RelationalTable table) {
    @SuppressWarnings("unchecked")
    Iterator<org.hibernate.mapping.Column> mappedColumns = mappedConstraint.getColumnIterator();
    return convertIndex(null, mappedColumns, table);
}