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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 2.0.0-M2
    • 1.2.0, 2.0.0-M2
    • jdbc
    • None
    • 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_Trunk.patch
          7 kB
          Ravi Prakash Palacherla
        2. OPENJPA-1051_Simple_Trunk.patch
          5 kB
          Ravi Prakash Palacherla

        Activity

          People

            dezzio David Ezzio
            rpalache Ravi Prakash Palacherla
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: