if (relationship != null) { FullQualifiedName fqName = extractFQName(relationship); navProperty.setRelationship(fqName);
if (relationship != null) { FullQualifiedName fqName = extractFQName(relationship); navProperty.setRelationship(fqName);
if (relationship != null) { FullQualifiedName fqName = extractFQName(relationship); navProperty.setRelationship(fqName);
property.setFromRole(sourceRoleName); property.setToRole(targetRoleName); property.setRelationship(new FullQualifiedName(schema .getNamespace(), associationName)); properties.add(property);
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; }
private NavigationProperty createNavigationProperty(final String namespace, Field field, AnnotationHelper.AnnotatedNavInfo navInfo) { NavigationProperty navProp = new NavigationProperty(); navProp.setName(ANNOTATION_HELPER.getPropertyName(field)); String fromRole = navInfo.getFromRoleName(); navProp.setFromRole(fromRole); navProp.setToRole(navInfo.getToRoleName()); String relationshipName = navInfo.getRelationshipName(); navProp.setRelationship(new FullQualifiedName(namespace, relationshipName)); return navProp; }
private NavigationProperty createNavigationProperty(final String namespace, Field field, AnnotationHelper.AnnotatedNavInfo navInfo) { NavigationProperty navProp = new NavigationProperty(); navProp.setName(ANNOTATION_HELPER.getPropertyName(field)); String fromRole = navInfo.getFromRoleName(); navProp.setFromRole(fromRole); navProp.setToRole(navInfo.getToRoleName()); String relationshipName = navInfo.getRelationshipName(); navProp.setRelationship(new FullQualifiedName(namespace, relationshipName)); return navProp; }
for (NavigationProperty property : newType .getNavigationProperties()) { property.setRelationship(new FullQualifiedName(targetSchema .getNamespace(), property.getRelationship().getName()));
private NavigationProperty clone(NavigationProperty property) { if (property == null) { return null; } NavigationProperty newProperty = new NavigationProperty(); newProperty.setAnnotationAttributes(property.getAnnotationAttributes()); newProperty.setAnnotationElements(property.getAnnotationElements()); newProperty.setDocumentation(property.getDocumentation()); newProperty.setFromRole(property.getFromRole()); newProperty.setMapping(property.getMapping()); newProperty.setName(property.getName()); newProperty.setRelationship(property.getRelationship()); newProperty.setToRole(property.getToRole()); return newProperty; }
navProp.setRelationship(new FullQualifiedName(namespace, association .getName()));
navProp.setRelationship(new FullQualifiedName(namespace, association .getName()));