@Override Builder newBuilder(EdmEntityType entityType, BuilderContext context) { fillBuilder(entityType, context); context.register(entityType, this); this.alias = entityType.alias; this.hasStream = entityType.hasStream; this.openType = entityType.openType; if (entityType.keys != null) { // subtypes don't have keys! this.keys.addAll(entityType.keys); } if (entityType.getBaseType() != null) { baseTypeBuilder = EdmEntityType.newBuilder(entityType.getBaseType(), context); } for (EdmNavigationProperty navigationProperty : entityType.navigationProperties) this.navigationProperties.add(EdmNavigationProperty.newBuilder(navigationProperty, context)); return this; }
@Override Builder newBuilder(EdmEntityType entityType, BuilderContext context) { fillBuilder(entityType, context); context.register(entityType, this); this.alias = entityType.alias; this.hasStream = entityType.hasStream; this.openType = entityType.openType; if (entityType.keys != null) { // subtypes don't have keys! this.keys.addAll(entityType.keys); } if (entityType.getBaseType() != null) { baseTypeBuilder = EdmEntityType.newBuilder(entityType.getBaseType(), context); } for (EdmNavigationProperty navigationProperty : entityType.navigationProperties) this.navigationProperties.add(EdmNavigationProperty.newBuilder(navigationProperty, context)); return this; }
@Override Builder newBuilder(EdmEntityType entityType, BuilderContext context) { fillBuilder(entityType, context); context.register(entityType, this); this.alias = entityType.alias; this.hasStream = entityType.hasStream; this.openType = entityType.openType; if (entityType.keys != null) { // subtypes don't have keys! this.keys.addAll(entityType.keys); } if (entityType.getBaseType() != null) { baseTypeBuilder = EdmEntityType.newBuilder(entityType.getBaseType(), context); } for (EdmNavigationProperty navigationProperty : entityType.navigationProperties) this.navigationProperties.add(EdmNavigationProperty.newBuilder(navigationProperty, context)); return this; }