spring-projects / spring-projects/spring-data-rest
Exposing custom repositories
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
In SD JPA is an option for CustomRepositories (http://static.springsource.org/spring-data/data-jpa/docs/1.0.0.M1/reference/html/#repositories.custom-implementations). Today I was trying to expose them via /rest/search. Unfortunately it didn't work. When I am calling /rest/search/ only the methods in the EntityRepository are exposed, the methods of CustomEntityRepository are not.
Is there any workaround, or did I miss something?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior through /rest/search/ with an EntityRepository and CustomEntityRepository, then trace how repository methods are selected for exposure. Done means custom repository methods are available through the REST search endpoint; the issue names no source file or test, so locate the relevant repository-exposure code and add coverage there.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100