@Test public void checkReturnEmptyMapIfNoJavaFunctionsFound() throws ODataJPAModelException { assertNotNull(cut.create(new JPADefaultEdmNameBuilder(PUNIT_NAME), reflections, helper.schema)); }
Map<? extends String, ? extends IntermediateFunction> create(final JPAEdmNameBuilder nameBuilder, final EntityType<?> jpaEntityType, final IntermediateSchema schema) throws ODataJPAModelException { final Map<String, IntermediateFunction> funcList = new HashMap<>(); if (jpaEntityType.getJavaType() instanceof AnnotatedElement) { final EdmFunctions jpaStoredProcedureList = jpaEntityType.getJavaType() .getAnnotation(EdmFunctions.class); if (jpaStoredProcedureList != null) { for (final EdmFunction jpaStoredProcedure : jpaStoredProcedureList.value()) { putFunction(nameBuilder, jpaEntityType, schema, funcList, jpaStoredProcedure); } } else { final EdmFunction jpaStoredProcedure = jpaEntityType.getJavaType() .getAnnotation(EdmFunction.class); if (jpaStoredProcedure != null) putFunction(nameBuilder, jpaEntityType, schema, funcList, jpaStoredProcedure); } } return funcList; }
IntermediateFunctionFactory extends IntermediateOperationFactory { Map<? extends String, ? extends IntermediateFunction> create(final JPAEdmNameBuilder nameBuilder, final EntityType<?> jpaEntityType, final IntermediateSchema schema) throws ODataJPAModelException { final Map<String, IntermediateFunction> funcList = new HashMap<>(); if (jpaEntityType.getJavaType() instanceof AnnotatedElement) { final EdmFunctions jpaStoredProcedureList = jpaEntityType.getJavaType() .getAnnotation(EdmFunctions.class); if (jpaStoredProcedureList != null) { for (final EdmFunction jpaStoredProcedure : jpaStoredProcedureList.value()) { putFunction(nameBuilder, jpaEntityType, schema, funcList, jpaStoredProcedure); } } else { final EdmFunction jpaStoredProcedure = jpaEntityType.getJavaType() .getAnnotation(EdmFunction.class); if (jpaStoredProcedure != null) putFunction(nameBuilder, jpaEntityType, schema, funcList, jpaStoredProcedure); } } return funcList; } }
IntermediateFunctionFactory extends IntermediateOperationFactory { Map<? extends String, ? extends IntermediateFunction> create(final JPAEdmNameBuilder nameBuilder, final EntityType<?> jpaEntityType, final IntermediateSchema schema) throws ODataJPAModelException { final Map<String, IntermediateFunction> funcList = new HashMap<>(); if (jpaEntityType.getJavaType() instanceof AnnotatedElement) { final EdmFunctions jpaStoredProcedureList = jpaEntityType.getJavaType() .getAnnotation(EdmFunctions.class); if (jpaStoredProcedureList != null) { for (final EdmFunction jpaStoredProcedure : jpaStoredProcedureList.value()) { putFunction(nameBuilder, jpaEntityType, schema, funcList, jpaStoredProcedure); } } else { final EdmFunction jpaStoredProcedure = jpaEntityType.getJavaType() .getAnnotation(EdmFunction.class); if (jpaStoredProcedure != null) putFunction(nameBuilder, jpaEntityType, schema, funcList, jpaStoredProcedure); } } return funcList; }  }
IntermediateFunctionFactory extends IntermediateOperationFactory { Map<? extends String, ? extends IntermediateFunction> create(final JPAEdmNameBuilder nameBuilder, final EntityType<?> jpaEntityType, final IntermediateSchema schema) throws ODataJPAModelException { final Map<String, IntermediateFunction> funcList = new HashMap<>(); if (jpaEntityType.getJavaType() instanceof AnnotatedElement) { final EdmFunctions jpaStoredProcedureList = jpaEntityType.getJavaType() .getAnnotation(EdmFunctions.class); if (jpaStoredProcedureList != null) { for (final EdmFunction jpaStoredProcedure : jpaStoredProcedureList.value()) { putFunction(nameBuilder, jpaEntityType, schema, funcList, jpaStoredProcedure); } } else { final EdmFunction jpaStoredProcedure = jpaEntityType.getJavaType() .getAnnotation(EdmFunction.class); if (jpaStoredProcedure != null) putFunction(nameBuilder, jpaEntityType, schema, funcList, jpaStoredProcedure); } } return funcList; }   }
IntermediateFunctionFactory extends IntermediateOperationFactory { Map<? extends String, ? extends IntermediateFunction> create(final JPAEdmNameBuilder nameBuilder, final EntityType<?> jpaEntityType, final IntermediateSchema schema) throws ODataJPAModelException { final Map<String, IntermediateFunction> funcList = new HashMap<>(); if (jpaEntityType.getJavaType() instanceof AnnotatedElement) { final EdmFunctions jpaStoredProcedureList = jpaEntityType.getJavaType() .getAnnotation(EdmFunctions.class); if (jpaStoredProcedureList != null) { for (final EdmFunction jpaStoredProcedure : jpaStoredProcedureList.value()) { putFunction(nameBuilder, jpaEntityType, schema, funcList, jpaStoredProcedure); } } else { final EdmFunction jpaStoredProcedure = jpaEntityType.getJavaType() .getAnnotation(EdmFunction.class); if (jpaStoredProcedure != null) putFunction(nameBuilder, jpaEntityType, schema, funcList, jpaStoredProcedure); } } return funcList; }    }