/** * Creates a subquery criterion that ensures the given property is less than all the given returned values * * @param propertyName The property name * @param propertyValue The property value * @return A Criterion instance */ public org.grails.datastore.mapping.query.api.Criteria leAll(String propertyName, @SuppressWarnings("rawtypes") QueryableCriteria propertyValue) { addToCriteria(Property.forName(propertyName).leAll(getHibernateDetachedCriteria(propertyValue))); return this; }
/** * Creates a subquery criterion that ensures the given property is less than all the given returned values * * @param propertyName The property name * @param propertyValue The property value * @return A Criterion instance */ public org.grails.datastore.mapping.query.api.Criteria leAll(String propertyName, @SuppressWarnings("rawtypes") QueryableCriteria propertyValue) { addToCriteria(Property.forName(propertyName).leAll(convertToHibernateCriteria(propertyValue))); return this; }
@Override public Criterion toHibernateCriterion(AbstractHibernateQuery hibernateQuery, Query.LessThanEqualsAll criterion, String alias) { DetachedCriteria detachedCriteria = toHibernateDetachedCriteria(hibernateQuery,criterion.getValue()); return Property.forName(getPropertyName(criterion, alias)).leAll(detachedCriteria); } });