public class Hibernate5Hbm2DdlSchemaHelper extends Object implements SchemaHelper
GeneratorTableSchemaFilterProvider
Constructor and Description |
---|
Hibernate5Hbm2DdlSchemaHelper(String configFile,
com.atlassian.config.db.HibernateConfig hibernateConfig) |
Hibernate5Hbm2DdlSchemaHelper(String configFile,
Properties hibernateProperties) |
Modifier and Type | Method and Description |
---|---|
void |
createSchema()
Creates the schema in the database.
|
boolean |
databaseContainsExistingData(Connection connection) |
void |
updateSchemaIfNeeded()
If there are any updates to the Schema needed, do them.
|
public Hibernate5Hbm2DdlSchemaHelper(String configFile, Properties hibernateProperties)
public Hibernate5Hbm2DdlSchemaHelper(String configFile, com.atlassian.config.db.HibernateConfig hibernateConfig)
public void updateSchemaIfNeeded() throws OperationFailedException
SchemaHelper
updateSchemaIfNeeded
in interface SchemaHelper
OperationFailedException
public void createSchema() throws OperationFailedException
SchemaHelper
createSchema
in interface SchemaHelper
OperationFailedException
public boolean databaseContainsExistingData(Connection connection)
databaseContainsExistingData
in interface SchemaHelper
Copyright © 2017 Atlassian. All rights reserved.