OpenJPA
  1. OpenJPA
  2. OPENJPA-399

openjpa did not handle multiple schema names with same table name

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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().

      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:
              Teresa Kan
              Reporter:
              Teresa Kan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development