if ((getMapping() != null) && getMapping().isNestedTableMapping()) {
if ((!shouldQueryToManyRelationship()) && qkIsToMany && (!mapping.isNestedTableMapping())) { throw QueryException.invalidUseOfToManyQueryKeyInExpression(theOneThatsNotNull);
if ((getMapping() != null) && getMapping().isNestedTableMapping()) {
if ((!shouldQueryToManyRelationship()) && qkIsToMany && (!mapping.isNestedTableMapping())) { throw QueryException.invalidUseOfToManyQueryKeyInExpression(theOneThatsNotNull);