Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Labels:
      None

      Description

      javax.persistence.schema-generation.database.action=drop-and-create only drops the schema on undeploy/deploy. For rapid/agile/iterative development via IDEs, very frequently developers start and stop the app/server without necessarily triggering a deploy/undeploy cycle hence not performing a drop. In these scenarios, developers would want a schema drop to happen on app/server stop and start. Hibernate for example, supports this feature.

      Such a feature could be supported via an additional property like javax.persistence.schema-generation.database.drop-on-restart=true, that is defaulted to false.

        Activity

        Hide
        Mitesh Meswani added a comment -

        javax.persistence.schema-generation.database.action=drop-and-create only drops the schema on deploy.

        There might be scenarios where we might want to clean up database on undeploy. It would be nice to have an option where EMF.close() triggers a drop

        Show
        Mitesh Meswani added a comment - javax.persistence.schema-generation.database.action=drop-and-create only drops the schema on deploy . There might be scenarios where we might want to clean up database on undeploy. It would be nice to have an option where EMF.close() triggers a drop
        Hide
        reza_rahman added a comment -

        Do let me know if anything needs to be explained further - I am happy to help.

        Please note that these are purely my personal views and certainly not of Oracle's as a company.

        Show
        reza_rahman added a comment - Do let me know if anything needs to be explained further - I am happy to help. Please note that these are purely my personal views and certainly not of Oracle's as a company.

          People

          • Assignee:
            Unassigned
            Reporter:
            reza_rahman
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: