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

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.7
    • None
    • 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

        1. openjpa_94.zip
          7 kB
          Sherry Shen

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: