Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1501

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.2, 1.3.0, 2.0.0
    • 1.3.0, 2.0.2, 2.1.0
    • kernel
    • None
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              mikedd Michael Dick
              mikedd Michael Dick
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: