Package org.eclipse.persistence.jaxb

Examples of org.eclipse.persistence.jaxb.ObjectGraph.addAttributeNodes()


     * @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


     */
    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;
    }

    /* (non-Javadoc)
 
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.