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

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

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: