Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1186

Create JPA service callback for invoking database migration

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JPA / Hibernate
    • Labels:
      None

      Description

      ´┐ŻLooking for a simple callback/listener mechanism so that we can invoke a database migration script before JPA persistent unit starts up and runs the Hibernate schema validation mechanism.

      Ideally, there would be a property within the persistence.xml that indicates which class to call. It would also pass in/inject the datasource that is being used for the persistence unit.

      Essentially, this would solve the lack of migration support in Hibernate itself.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            anilarora Anil Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: