// if this is not the first field, add an &&
if (i == 0)
code.tab(2).append("return ");
else
code.endl().tab(3).append("&& ");
name = _fields[i].getName();
type = _fields[i].getObjectIdFieldType();
if (type.isPrimitive()) {
code.openParen(false).append(name).append(" == ").