Uploaded image for project: 'Spring Data Neo4j'
  1. Spring Data Neo4j
  2. DATAGRAPH-1231

Derived findById for field entity (property expression) not using ID(n) syntax

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.1.8 (Lovelace SR8)
    • Fix Version/s: None
    • Component/s: CORE
    • Labels:
      None

      Description

      When findById() method defined on the repository is used, SDN correctly uses the ID( n ) = {...} syntax. However, when one tries to access the same logic for a child/field entity, the query is constructed with a format like:

      {{m0.`id` ={ `id_0` }}}

      which of course doesn't work for internal Neo4J ids.

       

      If possible, it would be nice to have the framework figure out that the referred object is a graph entity, which requires special ID filtering logic, and creates the query accordingly

        Attachments

          Activity

            People

            • Assignee:
              gerrit.meier Gerrit Meier
              Reporter:
              ozgurh Ozgur H
              Last updater:
              Ozgur H
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: