Iterator<FieldMetadata> iterator = fields.iterator();
while (iterator.hasNext()) {
FieldMetadata field = iterator.next();
String fieldName = field.getFieldName().getSymbolName();
mappingBuilderLine.append(String.format("\n\t\t\t.map(%s, %s.%s)",
<BUG>getConstantForField(fieldName), entityVariable, fieldName));
</BUG>
}
} else {
List<Pair<String, String>> projectionFields = this.typesFieldMaps.get(returnType);

Iterator<FieldMetadata> iterator = fields.iterator();
while (iterator.hasNext()) {
FieldMetadata field = iterator.next();
String fieldName = field.getFieldName().getSymbolName();
mappingBuilderLine.append(String.format("\n\t\t\t.map(%s, %s.%s)",
getConstantForField(fieldName).getFieldName(), entityVariable, fieldName));
}
} else {
List<Pair<String, String>> projectionFields = this.typesFieldMaps.get(returnType);
