Skip to content

Fluent querying can lead to invalid entity graph if multiple children nodes of a same child node are queried #318

Description

@roman-garcia

What steps will reproduce the problem ?

Steps to reproduce the behavior:

  1. Build an entity graph with at least 2 children nodes from a same attribute.
  2. Try calling a EntityGraphJpaSpecificationExecutor#findBy(Specification, EntityGraph, Function)
    with it.

What is the expected output ?

It should return the queried result.

What happens instead ?

You end up with a org.springframework.data.core.PropertyReferenceException because it cannot find properties you asked for.

Environment

  • Spring Data JPA version: 4.0.1
  • ORM version: Hibernate 7.3.1.Final
  • spring-data-jpa-entity-graph version: 4.0.3

Additional context

Introduced by 4585c97

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions