OpenJPA
  1. OpenJPA
  2. OPENJPA-970

SchemaToolTask does not have "dropTables" argument

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.3.0, 2.0.0-M2
    • Component/s: third-party
    • Labels:
      None

      Description

      The task SchemaToolTask does not implements
      "dropTables" argument. According to the documentation [1] this task can
      take "dropTables" arguments
      but when I run as shown below I get this error: The <schematool> type
      doesn't support the "droptables" attribute.

      <schematool dropTables="false" action="refresh">
      <fileset dir="$

      {build.sql.dir}

      ">
      <include name="schema.xml" />
      </fileset>
      <config
      propertiesFile="$

      {prototype.src.model.base}

      /META-INF/persistence.xml" />
      </schematool>

      In fact, I looked in source code and this task has no set method for
      "dropTables"argument.

      I use :
      revision.number=422266:683325
      openjpa.version=1.2.0

      [1]
      http://openjpa.apache.org/builds/1.2.0/apache-openjpa-1.2.0/docs/manual/ref_guide_schema_schematool.html

      Thanks,

      1. OPENJPA-970.patch
        0.7 kB
        Donald Woods

        Activity

        Leonardo NOLETO created issue -
        Hide
        Donald Woods added a comment -

        Patch for reported problem, based on the suggested change by Leonardo on the users list.

        Show
        Donald Woods added a comment - Patch for reported problem, based on the suggested change by Leonardo on the users list.
        Donald Woods made changes -
        Field Original Value New Value
        Attachment OPENJPA-970.patch [ 12402068 ]
        Donald Woods made changes -
        Assignee Michael Dick [ mikedd ]
        Fix Version/s 1.3.0 [ 12313326 ]
        Fix Version/s 2.0.0 [ 12313483 ]
        Michael Dick made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Michael Dick
            Reporter:
            Leonardo NOLETO
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development