Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query method do not consider Sort parameters [DATAREST-384] #763

Closed
spring-projects-issues opened this issue Sep 10, 2014 · 0 comments
Closed
Assignees
Labels
type: bug

Comments

@spring-projects-issues
Copy link

spring-projects-issues commented Sep 10, 2014

Oliver Drotbohm opened DATAREST-384 and commented

Assume you have a repository interface like this:

public interface CustomerRepository extends Repository<Customer, Long> {

  List<Customer> findByLastname(@Param("lastname") String lastname, Sort sort);
}

then the Sort paramter is neither advertised

{ "_links" : {
    "findByLastname" : {
      "href" : "http://localhost:8080/customers/search/findByLastname{?lastname}",
      "templated" : true
    }
  }
}

nor is it considered if you trigger a request to the URI:

http://localhost:8080/customers/search/findByLastname?sort=firstname,asc

Affects: 2.1.4 (Dijkstra SR4), 2.2 GA (Evans)

Backported to: 2.2.1 (Evans SR1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug
Projects
None yet
Development

No branches or pull requests

2 participants