Spring Data Neo4j
  1. Spring Data Neo4j
  2. DATAGRAPH-294

derived finder methods for numerically indexed (unique) values fail

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 2.1.RC3
    • Fix Version/s: 2.1.RC4
    • Component/s: None
    • Labels:
      None

      Description

      @NodeEntity
      public class User {
          @GraphId private Long nodeId;
          @Indexed(unique = true) private int id;
          @Indexed private String email;
      
          public User(int id) {
              this.id = id;
          }
          // getter & setters
      }
      // this fails:
      User foundUser3 = userRepository.findById(1);
      

        Activity

        Hide
        Nicholas Stuart added a comment -

        I would like to revisit this issue for a composite key lookup. When using a numeric field in a multi-key lookup this fails.

        In the example, if you did userRepository.findByIdAndEmail(int id, String email) this would fail to do the lookup properly if the a field is numeric.

        Show
        Nicholas Stuart added a comment - I would like to revisit this issue for a composite key lookup. When using a numeric field in a multi-key lookup this fails. In the example, if you did userRepository.findByIdAndEmail(int id, String email) this would fail to do the lookup properly if the a field is numeric.
        Hide
        Tom Wetjens added a comment -

        I'm experiencing the same problem as Nicholas. If for example a derived finder method is declared as (int, String) then lookup will fail. It appears the issue was only partially fixed. Propose to re-open this issue.

        Show
        Tom Wetjens added a comment - I'm experiencing the same problem as Nicholas. If for example a derived finder method is declared as (int, String) then lookup will fail. It appears the issue was only partially fixed. Propose to re-open this issue.

          People

          • Assignee:
            Michael Hunger
            Reporter:
            Michael Hunger
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: