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

import.sql script from a deployment no longer gets run automatically unless the deployment contains an entity class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • JPA / Hibernate
    • None
    • ---
    • ---

    Description

      An import.sql script contained in a deployment no longer gets run automatically unless the deployment contains an entity class.

      As an example, take a look at the servlet-security quickstart. It was recently migrated to EE 10 and when deploying it to WildFly, its import.sql script isn't getting run.

      If we add a dummy entity class to the application as shown here, then the import.sql script does get run:

      INFO  [org.hibernate.tool.schema.internal.SchemaCreatorImpl] (ServerService Thread Pool -- 80) HHH000476: Executing import script 'vfs:/content/servlet-security.war/WEB-INF/classes/import.sql'
      

      Attachments

        Issue Links

          Activity

            People

              smarlow1@redhat.com Scott Marlow
              fjuma1@redhat.com Farah Juma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: