List of usage examples for org.hibernate.mapping List getIndex
public Value getIndex()
From source file:net.chrisrichardson.ormunit.hibernate.HibernateMappingTests.java
License:Apache License
protected void assertOneToManyListField(String fieldName, String foreignKeyColumn, String indexColumn) throws MappingException { Property property = classMapping.getProperty(fieldName); org.hibernate.mapping.List value = (org.hibernate.mapping.List) property.getValue(); HibernateAssertUtil.assertColumn(foreignKeyColumn, value.getKey()); HibernateAssertUtil.assertColumn(indexColumn, value.getIndex()); assertTrue(value.getElement() instanceof OneToMany); }