protected void addNotEqualsCondition(final String propertyName, final String value) {
        fieldConditions.add(getCriteriaBuilder().notEqual(getRootPath().get(propertyName).as(String.class), value));
    }
protected void addNotEqualsCondition ( final String propertyName , final String value ) { fieldConditions . add ( getCriteriaBuilder ( ) . notEqual ( getRootPath ( ) . get ( propertyName ) . as ( String . class ) , value ) ) ; }
Add a Field Search Condition that will search a field for a specified value using the following SQL logic:
{@code field != 'value'}

@param propertyName The name of the field as defined in the Entity mapping class.
@param value        The value to search against.