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