private EdmEntityType(String namespace, String alias, String name, Boolean hasStream, Boolean openType, ImmutableList<String> keys, EdmEntityType baseType, List<EdmProperty.Builder> properties, ImmutableList<EdmNavigationProperty> navigationProperties, EdmDocumentation doc, ImmutableList<EdmAnnotation<?>> annotations, ImmutableList<EdmAnnotation<?>> annotElements, Boolean isAbstract) { super(baseType, namespace, name, properties, doc, annotations, annotElements, isAbstract); this.alias = alias; this.hasStream = hasStream; this.openType = openType; this.keys = (keys == null || keys.isEmpty()) ? (baseType == null ? findConventionalKeys() : null) : keys; if (baseType == null && this.keys == null) throw new IllegalArgumentException("Root types must have keys"); if (baseType != null && this.keys != null) throw new IllegalArgumentException("Keys on root types only"); this.navigationProperties = navigationProperties; }
private EdmEntityType(String namespace, String alias, String name, Boolean hasStream, Boolean openType, ImmutableList<String> keys, EdmEntityType baseType, List<EdmProperty.Builder> properties, ImmutableList<EdmNavigationProperty> navigationProperties, EdmDocumentation doc, ImmutableList<EdmAnnotation<?>> annotations, ImmutableList<EdmAnnotation<?>> annotElements, Boolean isAbstract) { super(baseType, namespace, name, properties, doc, annotations, annotElements, isAbstract); this.alias = alias; this.hasStream = hasStream; this.openType = openType; this.keys = (keys == null || keys.isEmpty()) ? (baseType == null ? findConventionalKeys() : null) : keys; if (baseType == null && this.keys == null) throw new IllegalArgumentException("Root types must have keys"); if (baseType != null && this.keys != null) throw new IllegalArgumentException("Keys on root types only"); this.navigationProperties = navigationProperties; }
private EdmEntityType(String namespace, String alias, String name, Boolean hasStream, Boolean openType, ImmutableList<String> keys, EdmEntityType baseType, List<EdmProperty.Builder> properties, ImmutableList<EdmNavigationProperty> navigationProperties, EdmDocumentation doc, ImmutableList<EdmAnnotation<?>> annotations, ImmutableList<EdmAnnotation<?>> annotElements, Boolean isAbstract) { super(baseType, namespace, name, properties, doc, annotations, annotElements, isAbstract); this.alias = alias; this.hasStream = hasStream; this.openType = openType; this.keys = (keys == null || keys.isEmpty()) ? (baseType == null ? findConventionalKeys() : null) : keys; if (baseType == null && this.keys == null) throw new IllegalArgumentException("Root types must have keys"); if (baseType != null && this.keys != null) throw new IllegalArgumentException("Keys on root types only"); this.navigationProperties = navigationProperties; }