}
// Render annotations that are to be added to a JPA object
// at the class level
private String renderClassAnnotation(DescribeSObjectResult dsr) {
JPAAnnotationBuilder builder = new JPAAnnotationBuilder(0 /*numIndents*/);
builder.add(Generated.class,
Collections.<String, String>singletonMap("value", "\"" + ForceJPAClassGenerator.class.getName() + "\""));
builder.add(Table.class,
Collections.<String, String>singletonMap("name", "\"" + dsr.getName() + "\""));
builder.add(Entity.class,
Collections.<String, String>singletonMap("name", "\"" + toString(dsr, "className") + "\""));
// We're generating the class off of already existing schema
// so there won't be a need to create it.
builder.add(CustomObject.class,
Collections.<String, String>singletonMap("readOnlySchema", "true"));
return builder.toString();
}