protected EdmEntityType getEntityTypeWithAnnotations(final FullQualifiedName namespaceOrAliasFQN, boolean isEntityDerivedFromES) { this.isEntityDerivedFromES = isEntityDerivedFromES; final FullQualifiedName fqn = resolvePossibleAlias(namespaceOrAliasFQN); if (!isPreviousES() && getEntityContainer() != null) { getEntityContainer().getEntitySetsWithAnnotations(); } EdmEntityType entityType = entityTypesDerivedFromES.get(fqn); if (entityType == null) { entityType = createEntityType(fqn); if (entityType != null) { entityTypesDerivedFromES.put(fqn, entityType); } } this.isEntityDerivedFromES = false; return entityType; }
protected EdmComplexType getComplexTypeWithAnnotations(final FullQualifiedName namespaceOrAliasFQN, boolean isComplexDerivedFromES) { this.isComplexDerivedFromES = isComplexDerivedFromES; final FullQualifiedName fqn = resolvePossibleAlias(namespaceOrAliasFQN); if (!isPreviousES() && getEntityContainer() != null) { getEntityContainer().getEntitySetsWithAnnotations(); } EdmComplexType complexType = complexTypesDerivedFromES.get(fqn); if (complexType == null) { complexType = createComplexType(fqn); if (complexType != null) { complexTypesDerivedFromES.put(fqn, complexType); } } this.isComplexDerivedFromES = false; return complexType; }