Example usage for org.hibernate.criterion Subqueries propertyLeSome

List of usage examples for org.hibernate.criterion Subqueries propertyLeSome

Introduction

In this page you can find the example usage for org.hibernate.criterion Subqueries propertyLeSome.

Prototype

public static Criterion propertyLeSome(String propertyName, DetachedCriteria dc) 

Source Link

Document

Creates a criterion which checks that the value of a given property is less-than-or-equal-to SOME of the values in the subquery result.

Usage

From source file:com.qcadoo.model.api.search.SearchSubqueries.java

License:Open Source License

public static SearchCriterion fieldLeSome(final String field, final SearchCriteriaBuilder criteria) {
    return new SearchCriterionImpl(
            Subqueries.propertyLeSome(field, ((SearchCriteria) criteria).getHibernateDetachedCriteria()));
}