/** * Finds a navigation property by name, searching up the type hierarchy if necessary. */ public EdmNavigationProperty findNavigationProperty(String name) { return getNavigationProperties().firstOrNull(OPredicates.nameEquals(EdmNavigationProperty.class, name)); }
/** * Finds a navigation property by name, searching up the type hierarchy if necessary. */ public EdmNavigationProperty findNavigationProperty(String name) { return getNavigationProperties().firstOrNull(OPredicates.nameEquals(EdmNavigationProperty.class, name)); }
/** * Finds a navigation property by name, searching up the type hierarchy if necessary. */ public EdmNavigationProperty findNavigationProperty(String name) { return getNavigationProperties().firstOrNull(OPredicates.nameEquals(EdmNavigationProperty.class, name)); }
/** * Gets the navigation properties defined for this entity type <i>including</i> inherited properties. */ public Enumerable<EdmNavigationProperty> getNavigationProperties() { return isRootType() ? getDeclaredNavigationProperties() : getBaseType().getNavigationProperties().union(getDeclaredNavigationProperties()); }
/** * Gets the navigation properties defined for this entity type <i>including</i> inherited properties. */ public Enumerable<EdmNavigationProperty> getNavigationProperties() { return isRootType() ? getDeclaredNavigationProperties() : getBaseType().getNavigationProperties().union(getDeclaredNavigationProperties()); }
public EdmPropertyBase findEdmProperty(String propName) { for (EdmSchema schema : this.schemas) { for (EdmEntityContainer eec : schema.getEntityContainers()) { for (EdmEntitySet ees : eec.getEntitySets()) { for (EdmNavigationProperty ep : ees.getType().getNavigationProperties()) { if (ep.getName().equals(propName)) { return ep; } } for (final EdmProperty ep : ees.getType().getProperties()) { if (ep.getName().equals(propName)) { return ep; } } } } } return null; }
/** * Gets the navigation properties defined for this entity type <i>including</i> inherited properties. */ public Enumerable<EdmNavigationProperty> getNavigationProperties() { return isRootType() ? getDeclaredNavigationProperties() : getBaseType().getNavigationProperties().union(getDeclaredNavigationProperties()); }
public EdmPropertyBase findEdmProperty(String propName) { for (EdmSchema schema : this.schemas) { for (EdmEntityContainer eec : schema.getEntityContainers()) { for (EdmEntitySet ees : eec.getEntitySets()) { for (EdmNavigationProperty ep : ees.getType().getNavigationProperties()) { if (ep.getName().equals(propName)) { return ep; } } for (final EdmProperty ep : ees.getType().getProperties()) { if (ep.getName().equals(propName)) { return ep; } } } } } return null; }
public EdmPropertyBase findEdmProperty(String propName) { for (EdmSchema schema : this.schemas) { for (EdmEntityContainer eec : schema.getEntityContainers()) { for (EdmEntitySet ees : eec.getEntitySets()) { for (EdmNavigationProperty ep : ees.getType().getNavigationProperties()) { if (ep.getName().equals(propName)) { return ep; } } for (final EdmProperty ep : ees.getType().getProperties()) { if (ep.getName().equals(propName)) { return ep; } } } } } return null; }
for (final EdmNavigationProperty navProp : edmEntityType.getNavigationProperties()) {
for (final EdmNavigationProperty ep : ees.getType().getNavigationProperties()) { if (JPAProducer.isSelected(ep.getName(), select)) { boolean expanded = Enumerable.create(links).any(new Predicate1<OLink>() {
for (Iterator<EdmNavigationProperty> it = entitySet.getType().getNavigationProperties().iterator(); it.hasNext();) { EdmNavigationProperty np = it.next(); OLink link = null;
void addNavigationRelations(MetadataFactory mf, String tableName, EdmEntityType fromEntity) throws TranslatorException { Table fromTable = mf.getSchema().getTable(tableName); for(EdmNavigationProperty nav:fromEntity.getNavigationProperties()) { EdmAssociation association = nav.getRelationship();