spring-projects / spring-projects/spring-data-rest

Exposing custom repositories

Open
#19 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.