@Test public void checkByEntityAnnotationResultParameterIsNullable() throws ODataJPAModelException { IntermediateFunction func = new IntermediateFunctionFactory().create(new JPADefaultEdmNameBuilder( PUNIT_NAME), helper.getEntityType(Organization.class), helper.schema).get("AllCustomersByABC"); assertTrue(func.getEdmItem().getReturnType().isNullable()); func = new IntermediateFunctionFactory().create(new JPADefaultEdmNameBuilder(PUNIT_NAME), helper .getEntityType(BusinessPartner.class), helper.schema).get("IsPrime"); assertFalse(func.getEdmItem().getReturnType().isNullable()); }
@Override public CsdlReturnType getReturnType() { return edmFunction.getReturnType(); }
IntermediateDataBaseFunction extends IntermediateFunction implements JPADataBaseFunction { @Override public CsdlReturnType getReturnType() { return edmFunction.getReturnType(); } }
IntermediateDataBaseFunction extends IntermediateFunction implements JPADataBaseFunction { @Override public CsdlReturnType getReturnType() { return edmFunction.getReturnType(); } IntermediateDataBaseFunction(final JPAEdmNameBuilder nameBuilder, final EdmFunction jpaFunction,
      final Class<?> definingPOJO, final IntermediateSchema schema); }
IntermediateDataBaseFunction extends IntermediateFunction implements JPADataBaseFunction { @Override public CsdlReturnType getReturnType() { return edmFunction.getReturnType(); } IntermediateDataBaseFunction(final JPAEdmNameBuilder nameBuilder, final EdmFunction jpaFunction,
      final Class<?> definingPOJO, final IntermediateSchema schema); @Override String getDBName(); @Override EdmFunctionType getFunctionType(); @Override List<JPAParameter> getParameter(); @Override JPAParameter getParameter(final String internalName); @Override JPAOperationResultParameter getResultParameter(); @Override CsdlReturnType getReturnType(); }
IntermediateDataBaseFunction extends IntermediateFunction implements JPADataBaseFunction { @Override public CsdlReturnType getReturnType() { return edmFunction.getReturnType(); } IntermediateDataBaseFunction(final JPAEdmNameBuilder nameBuilder, final EdmFunction jpaFunction,
      final Class<?> definingPOJO, final IntermediateSchema schema); @Override String getDBName(); @Override EdmFunctionType getFunctionType(); @Override List<JPAParameter> getParameter(); @Override JPAParameter getParameter(final String internalName); @Override JPAOperationResultParameter getResultParameter(); @Override CsdlReturnType getReturnType();  }