/** * Constraints a property to be less than or equal to a specified other property * * @param propertyName The property * @param otherPropertyName The other property * @return This criteria */ public Criteria leProperty(String propertyName, String otherPropertyName) { validatePropertyName(propertyName, "leProperty"); validatePropertyName(otherPropertyName, "leProperty"); addToCriteria(Restrictions.leProperty(propertyName, otherPropertyName)); return this; }