I want to have a spring data repository interface that takes two parameters. Is there a way to make it have the following behaviour?
MyObject findByParameter
Currently this is not possible in Spring-data-jpa.
Spring-data-jpa
There is a JIRA ticket regarding this which is still under investigation by the Spring team.
JIRA
Spring
However if you want a workaround you can checkout a simple criteria query example.