May need to override #getNotExpression in the dialect.  See https://hibernate.atlassian.net/browse/HHH-6643