OpenJPA
  1. OpenJPA
  2. OPENJPA-1501

EntityManager.find may return multiple instances of Entities with String identities if id value has trailing spaces.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2, 1.3.0, 2.0.0
    • Fix Version/s: 1.3.0, 2.0.2, 2.1.0
    • Component/s: kernel
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      As noted on the OpenJPA users mailing list at http://n2.nabble.com/EntityManager-fetch-and-query-by-key-behave-differently-tp4165833p4165833.html

      The find operation doesn't properly handle trailing whitespace in a String ID.

      1. OPENJPA-1501.trunk.patch.txt
        8 kB
        Michael Dick
      2. OPENJPA-1501.2.0.x.patch.txt
        8 kB
        Michael Dick

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development