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

[patch] Mappingtool doesn't check name conflicts if MappingDefaultsImpl is called with multiple columns.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 2.0.0-M2
    • Fix Version/s: 1.2.0, 2.0.0-M2
    • Component/s: jdbc
    • Labels:
      None
    • Environment:
      OpenJPA Trunk.

      Description

      In OpenJPA implementation, it looks that MappingDefaultsImpl.populateColumns can accept multiple columns
      because it has Column[] signature.
      If column name is longer than DBDictionary restriction (it's very short in some databases.
      For example, oracle max name length is 32), names are truncated.

      Because name conflict is detected based on actual Table info,given Column[] data does not get checked.
      So, if given Column[] have very long name and truncated name of these Column[] is conflicted,
      it could not be detected.

        Attachments

        1. OPENJPA-1051_Simple_Trunk.patch
          5 kB
          Ravi P Palacherla
        2. OPENJPA-1051_Trunk.patch
          7 kB
          Ravi P Palacherla

          Activity

            People

            • Assignee:
              dezzio David Ezzio
              Reporter:
              rpalache Ravi P Palacherla
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: