methodBody.append(method.getReturnType().getName() + " v" + i + " = typed." + method.getName()
+ "();\n");
if (method.isAnnotationPresent(EmbeddedId.class)) {
// Embedded id
if (method.isAnnotationPresent(AttributeOverrides.class)) {
AttributeOverrides overrides = method.getAnnotation(AttributeOverrides.class);
for (int j = 0; j < overrides.value().length; j++) {
AttributeOverride override = overrides.value()[j];
methodBody.append("if (v" + i + " == null) {builder.append(\"\\\\N\");}\n");
methodBody.append("else {\n");
Method idMethod = BeanUtils.getPropertyDescriptor(method.getReturnType(), override.name()).getReadMethod();
methodBody.append("builder.append(v" + i + "." + idMethod.getName() + "());\n");
methodBody.append("}\n");
if (j != overrides.value().length - 1) {
methodBody.append("builder.append(\"\\t\");\n");
}
}
}
} else {