Examples of addAttributeNodes()


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

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

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

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

            final Subgraph subgraph = graph.addSubgraph(entry.getKey());
            final ObjectGraph entityGraph = entry.getValue();

            final Set<String> fields = entityGraph.getFields(entry.getKey());
            if (!fields.isEmpty()) {
                subgraph.addAttributeNodes(fields.toArray(new String[fields.size()]));
            }

            final Map<String, ObjectGraph> subgraphs = entityGraph.getSubgraphs(entry.getKey());
            if (!subgraphs.isEmpty()) {
                final Class<?> subEntityClass = entityGraph.getEntityClass();
View Full Code Here

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

           
            String path = parent + "." + entry.getKey();

            final Set<String> fields = entityGraph.getFields(path);
            if (!fields.isEmpty()) {
                subgraph.addAttributeNodes(fields.toArray(new String[fields.size()]));
            }

            final Map<String, ObjectGraph> subgraphs = entityGraph.getSubgraphs();
            final Class<?> subEntityClass = entityGraph.getEntityClass();
            final String processedSubgraph = getProcessedSubgraph(entityClass, entry.getKey(), subEntityClass);
View Full Code Here

Examples of org.hibernate.jpa.graph.internal.EntityGraphImpl.addAttributeNodes()

      final NamedEntityGraph namedEntityGraph = definition.getAnnotation();

      if ( namedEntityGraph.includeAllAttributes() ) {
        for ( Object attributeObject : entityType.getAttributes() ) {
          entityGraph.addAttributeNodes( (Attribute) attributeObject );
        }
      }

      if ( namedEntityGraph.attributeNodes() != null ) {
        applyNamedAttributeNodes( namedEntityGraph.attributeNodes(), namedEntityGraph, entityGraph );
View Full Code Here

Examples of org.hibernate.jpa.graph.internal.EntityGraphImpl.addAttributeNodes()

      final NamedEntityGraph namedEntityGraph = definition.getAnnotation();

      if ( namedEntityGraph.includeAllAttributes() ) {
        for ( Object attributeObject : entityType.getAttributes() ) {
          entityGraph.addAttributeNodes( (Attribute) attributeObject );
        }
      }

      if ( namedEntityGraph.attributeNodes() != null ) {
        applyNamedAttributeNodes( namedEntityGraph.attributeNodes(), namedEntityGraph, entityGraph );
View Full Code Here

Examples of org.hibernate.jpa.graph.internal.EntityGraphImpl.addAttributeNodes()

      final NamedEntityGraph namedEntityGraph = definition.getAnnotation();

      if ( namedEntityGraph.includeAllAttributes() ) {
        for ( Object attributeObject : entityType.getAttributes() ) {
          entityGraph.addAttributeNodes( (Attribute) attributeObject );
        }
      }

      if ( namedEntityGraph.attributeNodes() != null ) {
        applyNamedAttributeNodes( namedEntityGraph.attributeNodes(), namedEntityGraph, entityGraph );
View Full Code Here

Examples of org.hibernate.jpa.graph.internal.EntityGraphImpl.addAttributeNodes()

      final NamedEntityGraph namedEntityGraph = definition.getAnnotation();

      if ( namedEntityGraph.includeAllAttributes() ) {
        for ( Object attributeObject : entityType.getAttributes() ) {
          entityGraph.addAttributeNodes( (Attribute) attributeObject );
        }
      }

      if ( namedEntityGraph.attributeNodes() != null ) {
        applyNamedAttributeNodes( namedEntityGraph.attributeNodes(), namedEntityGraph, entityGraph );
View Full Code Here

Examples of org.hibernate.jpa.graph.internal.EntityGraphImpl.addAttributeNodes()

      final NamedEntityGraph namedEntityGraph = definition.getAnnotation();

      if ( namedEntityGraph.includeAllAttributes() ) {
        for ( Object attributeObject : entityType.getAttributes() ) {
          entityGraph.addAttributeNodes( (Attribute) attributeObject );
        }
      }

      if ( namedEntityGraph.attributeNodes() != null ) {
        applyNamedAttributeNodes( namedEntityGraph.attributeNodes(), namedEntityGraph, entityGraph );
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.