Example usage for org.hibernate.mapping List getIndex

List of usage examples for org.hibernate.mapping List getIndex

Introduction

In this page you can find the example usage for org.hibernate.mapping List getIndex.

Prototype

public Value getIndex() 

Source Link

Usage

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);
}