Class AutoImportSql
java.lang.Object
org.broadleafcommerce.common.demo.AutoImportSql
- All Implemented Interfaces:
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 Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
void
setOrder
(int order) void
setPersistenceUnit
(String persistenceUnit) void
setSqlFilePath
(String sqlFilePath) Set one or more path locations to sql files.
-
Field Details
-
sqlFilePath
-
order
protected int order -
persistenceUnit
-
-
Constructor Details
-
AutoImportSql
public AutoImportSql() -
AutoImportSql
-
-
Method Details
-
getSqlFilePath
-
setSqlFilePath
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 interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) -
getPersistenceUnit
-
setPersistenceUnit
-