builder.append("\\N");
} else if (method.isAnnotationPresent(Convert.class)) {
Class<? extends AttributeConverter<?, ?>> converterClass = method.getAnnotation(Convert.class)
.converter();
AttributeConverter converter = converterClass.newInstance();
builder.append(converter.convertToDatabaseColumn(value));
} else if (method.isAnnotationPresent(JoinColumn.class)) {
// We need to get the id of the joined object.
for (Method method2 : value.getClass().getMethods()) {
if (method2.isAnnotationPresent(Id.class)) {
builder.append(method2.invoke(value));