Example usage for org.hibernate.persister.collection CollectionPropertyNames COLLECTION_INDEX

List of usage examples for org.hibernate.persister.collection CollectionPropertyNames COLLECTION_INDEX

Introduction

In this page you can find the example usage for org.hibernate.persister.collection CollectionPropertyNames COLLECTION_INDEX.

Prototype

String COLLECTION_INDEX

To view the source code for org.hibernate.persister.collection CollectionPropertyNames COLLECTION_INDEX.

Click Source Link

Usage

From source file:cz.jirutka.rsql.visitor.hibernate.HibernateCriterionVisitor.java

License:Apache License

private Type getPropertyType(BasicType basicType, String property) {
    if (CollectionPropertyNames.COLLECTION_ELEMENTS.equals(property)) {
        return basicType;
    } else if (CollectionPropertyNames.COLLECTION_INDEX.equals(property)) {
        return IntegerType.INSTANCE;
    }/* www.ja  v a  2s.  c  o m*/
    throw new IllegalArgumentException("Not handled: " + basicType + " with property: " + property);
}