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.
In Broadleaf 5.0 and 5.1, this class is non-functional and instead only serves to provide consistent runtime compatibility across Broadleaf 5.0, 5.1 and 5.2 in external modules. This class only provides any meaning in Broadleaf 5.2+.
Modifier and Type | Field and Description |
---|---|
protected int |
order |
protected String |
persistenceUnit |
protected String |
sqlFilePath |
Constructor and Description |
---|
AutoImportSql() |
AutoImportSql(String persistenceUnit,
String sqlFilePath,
int order) |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
String |
getPersistenceUnit() |
String |
getSqlFilePath() |
void |
setOrder(int order) |
void |
setPersistenceUnit(String persistenceUnit) |
void |
setSqlFilePath(String sqlFilePath)
Set one or more path locations to sql files.
|
protected String sqlFilePath
protected int order
protected String persistenceUnit
public String getSqlFilePath()
public void setSqlFilePath(String sqlFilePath)
sqlFilePath
- public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setOrder(int order)
public String getPersistenceUnit()
public void setPersistenceUnit(String persistenceUnit)
Copyright © 2020. All rights reserved.