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

Don't apply projections in embedded resources if entity projection (ExcerptProjection) do not show the resource for collection with lazy load [DATAREST-1115]

Open
#1,476 2 comments 0 reactions 1 assignee View on GitHub

@odrotbohm is already working on this.

Since Dec 31, 2020.

in: repository type: bug
Dominant language
Java
Stars
958
Forks
568
PR merge metrics
No merged PRs in 30d

Description

Israel José Boiko opened DATAREST-1115 and commented

I have an entity with excerptProjection = DefaultProjection.class in @RepositoryRestResource in your repository.
This projection does not present the collections, precisely so there are no uploads.

However as the entity of the collection that also has the same premise, for having an excerptProjection when going through: org.springframework.data.rest.webmvc.EmbeddedResourcesAssembler this applies the projection on all elements of the collection, forcing Hibernate to load the entity


Affects: 2.6.6 (Ingalls SR6)

1 votes, 2 watchers

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.