Examples of NavigationProperty


Examples of org.apache.olingo.odata2.api.edm.provider.NavigationProperty

            keyProperties.add(createKeyProperty(ep, field));
          }
        }
        EdmNavigationProperty enp = field.getAnnotation(EdmNavigationProperty.class);
        if (enp != null) {
          final NavigationProperty navProperty = createNavigationProperty(namespace, enp, field);
          navProperties.add(navProperty);
          Association association = createAssociation(field, navProperty);
          associations.add(association);
        }
        EdmMediaResourceContent emrc = field.getAnnotation(EdmMediaResourceContent.class);
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.provider.NavigationProperty

      return cp;
    }

    private NavigationProperty createNavigationProperty(final String namespace, final EdmNavigationProperty enp,
        final Field field) {
      NavigationProperty navProp = new NavigationProperty();
      navProp.setName(ANNOTATION_HELPER.getPropertyName(field));
      String fromRole = ANNOTATION_HELPER.extractFromRoleName(enp, field);
      navProp.setFromRole(fromRole);

      String toRole = ANNOTATION_HELPER.extractToRoleName(enp, field);
      navProp.setToRole(toRole);

      String relationshipName = ANNOTATION_HELPER.extractRelationshipName(enp, field);
      navProp.setRelationship(new FullQualifiedName(namespace, relationshipName));

      return navProp;
    }
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.