I’m not sure it is possible with repository methods naming but you can use @Query like
(:parameterOne is null or parameter1 = :parameterOne) and (:parameterTwo is null or parameter2 = :parameterTwo)
I’m not sure it is possible with repository methods naming but you can use @Query like
(:parameterOne is null or parameter1 = :parameterOne) and (:parameterTwo is null or parameter2 = :parameterTwo)