Package org.eclipse.persistence.jaxb

Examples of org.eclipse.persistence.jaxb.ObjectGraph


     * @param entity An entity to create object graph for.
     * @param fields A list of entity attributes.
     * @return Object graph
     */
    private ObjectGraph createObjectGraph(final Object entity, final List<String> fields) {
        ObjectGraph objectGraph = getJAXBContext().createObjectGraph(entity.getClass());
        objectGraph.addAttributeNodes("_persistence_links", "_persistence_relationshipInfo");
        for (String field : fields) {
            objectGraph.addAttributeNodes(field);
        }
        return objectGraph;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.jaxb.ObjectGraph

Copyright © 2018 www.massapicom. 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.