正在获取PLS-306:jpq查询中的参数数目或类型错误

时间:2019-07-09 11:52:45

标签: spring spring-boot jpa exception repository

在传递到存储库过程时如何处理LocalDate的空值。

 @Query(value = "SELECT * FROM TABLE "
      + "(pkg_data.gettdetails(:userId, :groupCode, "
      + ":mainfile, :effectiveDate))", nativeQuery = true)
  @Transactional(readOnly = true)
  public Optional<List<DataDetails>> findDataForUser(Integer userId,
      Optional<String> groupCode, String mainfile, LocalDate effectiveDate);


  when i am passing null value for Local date i am getting 
  wrong number or types of arguments in call to 'gettdetails'

0 个答案:

没有答案