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

openjpa did not handle multiple schema names with same table name

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: jdbc
    • Labels:
      None
    • Environment:
      JDK1.5, OPENJPA verison 580425

      Description

      Two entities have the same table name but with different schema, only one table is created. In addition, when two entities use the generatedType.AUTO for ID, only one OPENJPA_SEQUENCE-TABLE is created.

      The problem due to the SchemaGroup.findTable() which only looked for a table name from all the schemas. Once the table was found in one of the schema then it exited and assumed that the table existed. Same problem in the TableJDBCSeq.addSchema().

        Attachments

        1. OPENJPA_399.patch
          38 kB
          Teresa Kan
        2. OPENJPA-399_2.patch
          4 kB
          Teresa Kan
        3. OPENJPA-399_3.patch
          4 kB
          Teresa Kan

          Issue Links

            Activity

              People

              • Assignee:
                tckan1 Teresa Kan
                Reporter:
                tckan1 Teresa Kan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: