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]
@odrotbohm is already working on this.
Since Dec 31, 2020.
- 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
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.
Assessment
This issue has not been assessed yet.