OpenJPA
  1. OpenJPA
  2. OPENJPA-94

Allow MappingTool and persistence.xml to support drop-create for database schema

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.7
    • Component/s: None
    • Labels:
      None

      Description

      Currently, in the persistence context, one can define:

      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema" />

      Which causes OpenJPA to build the database schema based on the mapping defined. Currently, there is no way to define it to drop tables if they exists before creating the database schema. This is very useful for tests that drop (if exists) and creates new tables for each test.

      1. openjpa_94.zip
        7 kB
        Sherry Shen

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Shay Banon
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development