function.setHttpMethod(reader.getAttributeValue(Edm.NAMESPACE_M_2007_08, XmlMetadataConstants.EDM_FUNCTION_IMPORT_HTTP_METHOD)); function.setEntitySet(reader.getAttributeValue(null, XmlMetadataConstants.EDM_ENTITY_SET)); ReturnType returnType = new ReturnType(); String returnTypeString = reader.getAttributeValue(null, XmlMetadataConstants.EDM_FUNCTION_IMPORT_RETURN);
function.setHttpMethod(reader.getAttributeValue(Edm.NAMESPACE_M_2007_08, XmlMetadataConstants.EDM_FUNCTION_IMPORT_HTTP_METHOD)); function.setEntitySet(reader.getAttributeValue(null, XmlMetadataConstants.EDM_ENTITY_SET));
function.setHttpMethod(reader.getAttributeValue(Edm.NAMESPACE_M_2007_08, XmlMetadataConstants.EDM_FUNCTION_IMPORT_HTTP_METHOD)); function.setEntitySet(reader.getAttributeValue(null, XmlMetadataConstants.EDM_ENTITY_SET));
throw ODataJPAModelException.throwException(ODataJPAModelException.FUNC_ENTITYSET_EXP, null); functionImport.setEntitySet(entitySet);
throw ODataJPAModelException.throwException(ODataJPAModelException.FUNC_ENTITYSET_EXP, null); functionImport.setEntitySet(entitySet);
private FunctionImport clone(FunctionImport functionImport) { if (functionImport == null) { return null; } FunctionImport newFunctionImport = new FunctionImport(); newFunctionImport.setAnnotationAttributes(functionImport .getAnnotationAttributes()); newFunctionImport.setAnnotationElements(functionImport .getAnnotationElements()); newFunctionImport.setDocumentation(functionImport.getDocumentation()); newFunctionImport.setEntitySet(functionImport.getEntitySet()); newFunctionImport.setHttpMethod(functionImport.getHttpMethod()); newFunctionImport.setMapping(functionImport.getMapping()); newFunctionImport.setName(functionImport.getName()); newFunctionImport.setParameters(functionImport.getParameters()); newFunctionImport.setReturnType(clone(functionImport.getReturnType())); return newFunctionImport; }