@Override protected void lazyBuildEdmItem() throws ODataJPAModelException { super.lazyBuildEdmItem(); edmFunction.setBound(false); }
private void readFunction(XMLEventReader reader, StartElement element, CsdlSchema schema) throws XMLStreamException { CsdlFunction function = new CsdlFunction(); function.setParameters(new ArrayList<CsdlParameter>()); function.setName(attr(element, "Name")); function.setBound(Boolean.parseBoolean(attr(element, "IsBound"))); function.setComposable(Boolean.parseBoolean(attr(element, "IsComposable"))); String entitySetPath = attr(element, "EntitySetPath"); if (entitySetPath != null) { // TODO: need to parse into binding and path. function.setEntitySetPath(entitySetPath); } readOperationParameters(reader, function); schema.getFunctions().add(function); }
private void readFunction(XMLEventReader reader, StartElement element, CsdlSchema schema) throws XMLStreamException { CsdlFunction function = new CsdlFunction(); function.setParameters(new ArrayList<CsdlParameter>()); function.setName(attr(element, "Name")); function.setBound(Boolean.parseBoolean(attr(element, "IsBound"))); function.setComposable(Boolean.parseBoolean(attr(element, "IsComposable"))); String entitySetPath = attr(element, "EntitySetPath"); if (entitySetPath != null) { // TODO: need to parse into binding and path. function.setEntitySetPath(entitySetPath); } readOperationParameters(reader, function); schema.getFunctions().add(function); }
@Override protected void lazyBuildEdmItem() throws ODataJPAModelException { if (edmFunction == null) { edmFunction = new CsdlFunction(); edmFunction.setName(getExternalName()); edmFunction.setParameters(returnNullIfEmpty(determineEdmInputParameter())); edmFunction.setReturnType(determineEdmResultType(jpaFunction.returnType())); edmFunction.setBound(jpaFunction.isBound()); // TODO edmFunction.setComposable(isComposable) edmFunction.setComposable(false); // TODO edmFunction.setEntitySetPath(entitySetPath) for bound functions } }
edmFunction.setBound(false);