spring-projects / spring-projects/spring-integration

Jpa Retrieving Outbound Gateway - entity graph and parameters [INT-4435]

Open
#8,377 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: jpa type: enhancement
Dominant language
Java
Stars
1.6k
Forks
1.2k
Avg merge
17h 48m
Merged PRs (30d)
62

Description

Tomas Blazo opened INT-4435 and commented

I would like to use Jpa Retrieving Outbound Gateway similar to Spring Data JPA with entity graph and properties.

it would be nice to use it this way

@Bean
public IntegrationFlow findContract() {
    return f -> f
            .handle(Jpa.retrievingGateway(this.entityManagerFactory)
                    .entityClass(Contract.class)
                    //.parameterExpression("contractNumber", "payload"))
                    // set entityGraph name
            ;
}

Affects: 4.3.14

Reference URL: https://stackoverflow.com/questions/49321699/spring-integration-jpa-retrieving-outbound-gateway-with-entity-graph

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

No source file or test is identified in the issue. Start with the Jpa.retrievingGateway(...) API and its parameterExpression configuration, then investigate how a JPA entity graph name and properties should be supplied; done means the requested gateway usage is supported and verified for the shown example.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.