if (mapping.getSetMethodName() != null) {
method.addLine(mappingName + ".setSetMethodName(\"" + mapping.getSetMethodName() + "\");");
}
}
if (mapping.isAbstractDirectMapping()) {
AbstractDirectMapping directMapping = (AbstractDirectMapping)mapping;
if (mapping.getDescriptor().isAggregateDescriptor()) {
method.addLine(mappingName + ".setFieldName(\"" + directMapping.getField().getName() + "\");");
} else {
method.addLine(mappingName + ".setFieldName(\"" + directMapping.getField().getQualifiedName() + "\");");
}
if (directMapping.getNullValue() != null) {
method.addLine(mappingName + ".setNullValue(" + printString(directMapping.getNullValue()) + ");");
}
Converter converter = directMapping.getConverter();
if (converter != null) {
addConverterLines(method, mappingName + "Converter", converter);
method.addLine(mappingName + ".setConverter(" + mappingName + "Converter" + ");");
}
} else if (mapping.isForeignReferenceMapping()) {