在传递到存储库过程时如何处理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'