protected Predicate createLessThan ( Path root , CriteriaQuery < ? > query , CriteriaBuilder cb , String propertyPath , Object argument , PersistenceContext context ) { if ( ! ( argument instanceof Comparable ) ) throw new BadRequestException ( context . getMessageSource ( ) . getErrorMessage ( INCOMPATIBLE_QUERY_OPERATION , context . getLocale ( ) , "lt" ) ) ; return cb . lessThan ( root . get ( propertyPath ) , ( Comparable ) argument ) ; }
Apply a less than constraint to the named property .