List of usage examples for org.hibernate.mapping Constraint getColumnIterator
public Iterator<Column> getColumnIterator()
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); }