Examples of JPAAnnotationBuilder


Examples of com.force.sdk.codegen.builder.JPAAnnotationBuilder

    }

    // 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();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.