Class AutoImportSql

java.lang.Object
org.broadleafcommerce.common.demo.AutoImportSql
All Implemented Interfaces:
org.springframework.core.Ordered

public class AutoImportSql extends Object implements org.springframework.core.Ordered
Allows a module to specify a sql file and some ordering information to use during Hibernate auto import. This information is traditionally set via the 'hibernate.hbm2ddl.auto' property. However, that method is flat and does not allow easy individual module contribution and special ordering. By using this bean, a module can identify a sql file to import and specify the order it should appear in the cumulative list of all module contributions.
Author:
Jeff Fischer
  • Field Details

    • sqlFilePath

      protected String sqlFilePath
    • order

      protected int order
    • persistenceUnit

      protected String persistenceUnit
  • Constructor Details

    • AutoImportSql

      public AutoImportSql()
    • AutoImportSql

      public AutoImportSql(String persistenceUnit, String sqlFilePath, int order)
  • Method Details

    • getSqlFilePath

      public String getSqlFilePath()
    • setSqlFilePath

      public void setSqlFilePath(String sqlFilePath)
      Set one or more path locations to sql files. Multiple files are separated with a comma.
      Parameters:
      sqlFilePath -
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • setOrder

      public void setOrder(int order)
    • getPersistenceUnit

      public String getPersistenceUnit()
    • setPersistenceUnit

      public void setPersistenceUnit(String persistenceUnit)