Class HibernateSchemaComparisonService
- java.lang.Object
-
- com.atlassian.confluence.core.persistence.schema.hibernate.HibernateSchemaComparisonService
-
- All Implemented Interfaces:
SchemaComparisonService
public class HibernateSchemaComparisonService extends Object implements SchemaComparisonService
An implementation ofSchemaComparisonService
which uses the Hibernate mapping as the "expected" schema, and compares it with the actual database schema.- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description HibernateSchemaComparisonService(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, HibernateMetadataSource metadataSource, SchemaInformationService dbSchemaInformationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaComparison
compareExpectedWithActualSchema()
Attempt to reconcile the "expected" database schema with the "actual" schema.
-
-
-
Constructor Detail
-
HibernateSchemaComparisonService
public HibernateSchemaComparisonService(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, HibernateMetadataSource metadataSource, SchemaInformationService dbSchemaInformationService)
- Since:
- 8.0
-
-
Method Detail
-
compareExpectedWithActualSchema
public SchemaComparison compareExpectedWithActualSchema() throws Exception
Description copied from interface:SchemaComparisonService
Attempt to reconcile the "expected" database schema with the "actual" schema.- Specified by:
compareExpectedWithActualSchema
in interfaceSchemaComparisonService
- Throws:
Exception
-
-