@Test public void getNavPropertiesWithBaseType() throws Exception { List<String> navProperties = edmEntityTypeWithBaseType.getNavigationPropertyNames(); assertNotNull(navProperties); assertTrue(navProperties.contains("barBaseNav")); }
@Override public List<String> getNavigationPropertyNames() throws EdmException { if (edmNavigationPropertyNames == null) { edmNavigationPropertyNames = new ArrayList<String>(); if (edmBaseType != null) { edmNavigationPropertyNames.addAll(((EdmEntityType) edmBaseType).getNavigationPropertyNames()); } if (entityType.getNavigationProperties() != null) { for (final NavigationProperty navigationProperty : entityType.getNavigationProperties()) { edmNavigationPropertyNames.add(navigationProperty.getName()); } } } return edmNavigationPropertyNames; }
EdmEntityTypeImplProv extends EdmStructuralTypeImplProv implements EdmEntityType { @Override public List<String> getNavigationPropertyNames() throws EdmException { if (edmNavigationPropertyNames == null) { edmNavigationPropertyNames = new ArrayList<String>(); if (edmBaseType != null) { edmNavigationPropertyNames.addAll(((EdmEntityType) edmBaseType).getNavigationPropertyNames()); } if (entityType.getNavigationProperties() != null) { for (final NavigationProperty navigationProperty : entityType.getNavigationProperties()) { edmNavigationPropertyNames.add(navigationProperty.getName()); } } } return edmNavigationPropertyNames; } }
EdmEntityTypeImplProv extends EdmStructuralTypeImplProv implements EdmEntityType { @Override public List<String> getNavigationPropertyNames() throws EdmException { if (edmNavigationPropertyNames == null) { edmNavigationPropertyNames = new ArrayList<String>(); if (edmBaseType != null) { edmNavigationPropertyNames.addAll(((EdmEntityType) edmBaseType).getNavigationPropertyNames()); } if (entityType.getNavigationProperties() != null) { for (final NavigationProperty navigationProperty : entityType.getNavigationProperties()) { edmNavigationPropertyNames.add(navigationProperty.getName()); } } } return edmNavigationPropertyNames; } EdmEntityTypeImplProv(final EdmImplProv edm, final EntityType entityType, final String namespace); }
EdmEntityTypeImplProv extends EdmStructuralTypeImplProv implements EdmEntityType { @Override public List<String> getNavigationPropertyNames() throws EdmException { if (edmNavigationPropertyNames == null) { edmNavigationPropertyNames = new ArrayList<String>(); if (edmBaseType != null) { edmNavigationPropertyNames.addAll(((EdmEntityType) edmBaseType).getNavigationPropertyNames()); } if (entityType.getNavigationProperties() != null) { for (final NavigationProperty navigationProperty : entityType.getNavigationProperties()) { edmNavigationPropertyNames.add(navigationProperty.getName()); } } } return edmNavigationPropertyNames; } EdmEntityTypeImplProv(final EdmImplProv edm, final EntityType entityType, final String namespace); @Override List<String> getKeyPropertyNames(); @Override List<EdmProperty> getKeyProperties(); @Override boolean hasStream(); @Override EdmCustomizableFeedMappings getCustomizableFeedMappings(); @Override List<String> getNavigationPropertyNames(); @Override EdmEntityType getBaseType(); }
EdmEntityTypeImplProv extends EdmStructuralTypeImplProv implements EdmEntityType { @Override public List<String> getNavigationPropertyNames() throws EdmException { if (edmNavigationPropertyNames == null) { edmNavigationPropertyNames = new ArrayList<String>(); if (edmBaseType != null) { edmNavigationPropertyNames.addAll(((EdmEntityType) edmBaseType).getNavigationPropertyNames()); } if (entityType.getNavigationProperties() != null) { for (final NavigationProperty navigationProperty : entityType.getNavigationProperties()) { edmNavigationPropertyNames.add(navigationProperty.getName()); } } } return edmNavigationPropertyNames; } EdmEntityTypeImplProv(final EdmImplProv edm, final EntityType entityType, final String namespace); @Override List<String> getKeyPropertyNames(); @Override List<EdmProperty> getKeyProperties(); @Override boolean hasStream(); @Override EdmCustomizableFeedMappings getCustomizableFeedMappings(); @Override List<String> getNavigationPropertyNames(); @Override EdmEntityType getBaseType();  }