OpenJPA
  1. OpenJPA
  2. OPENJPA-601

Remove connection requirement for build action in SchemaTool

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.3, 1.1.0, 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: jdbc
    • Labels:
      None

      Description

      The "build" action in SchemaTool requires a data source connection to work even it does not need the connection to perform the "build" function. It would be a usability improvement to remove this requirement for the SchemaTool. This will also benefit other tools (e.g. MappingTool) that uses SchemaTool's build action under the cover.

      Albert Lee.

        Activity

        Hide
        Albert Lee added a comment -

        SchemaTools._ds is only used in executeSQL() method and the build action does not call executeSQL(). This patch avoids getting the datasource in the constructor for only the build action.

        Show
        Albert Lee added a comment - SchemaTools._ds is only used in executeSQL() method and the build action does not call executeSQL(). This patch avoids getting the datasource in the constructor for only the build action.

          People

          • Assignee:
            Albert Lee
            Reporter:
            Albert Lee
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development