Package liquibase.ext.hibernate.diff
Class ChangedPrimaryKeyChangeGenerator
java.lang.Object
liquibase.diff.output.changelog.AbstractChangeGenerator
liquibase.diff.output.changelog.core.ChangedPrimaryKeyChangeGenerator
liquibase.ext.hibernate.diff.ChangedPrimaryKeyChangeGenerator
- All Implemented Interfaces:
liquibase.diff.output.changelog.ChangedObjectChangeGenerator,liquibase.diff.output.changelog.ChangeGenerator
public class ChangedPrimaryKeyChangeGenerator
extends liquibase.diff.output.changelog.core.ChangedPrimaryKeyChangeGenerator
Hibernate doesn't know about all the variations that occur with primary keys, especially backing index stuff.
To prevent changing customized primary keys, we suppress this kind of changes from hibernate side.
-
Field Summary
Fields inherited from interface liquibase.diff.output.changelog.ChangeGenerator
EMPTY_CHANGE, PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionliquibase.change.Change[]fixChanged(liquibase.structure.DatabaseObject changedObject, liquibase.diff.ObjectDifferences differences, liquibase.diff.output.DiffOutputControl control, liquibase.database.Database referenceDatabase, liquibase.database.Database comparisonDatabase, liquibase.diff.output.changelog.ChangeGeneratorChain chain) intgetPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database) Methods inherited from class liquibase.diff.output.changelog.core.ChangedPrimaryKeyChangeGenerator
runAfterTypes, runBeforeTypesMethods inherited from class liquibase.diff.output.changelog.AbstractChangeGenerator
fixOutputAsSchema, fixSchema, setRespectSchemaAndCatalogCaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.diff.output.changelog.ChangeGenerator
fixOutputAsSchema, fixSchema
-
Constructor Details
-
ChangedPrimaryKeyChangeGenerator
public ChangedPrimaryKeyChangeGenerator()
-
-
Method Details
-
getPriority
public int getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database) - Specified by:
getPriorityin interfaceliquibase.diff.output.changelog.ChangeGenerator- Overrides:
getPriorityin classliquibase.diff.output.changelog.core.ChangedPrimaryKeyChangeGenerator
-
fixChanged
public liquibase.change.Change[] fixChanged(liquibase.structure.DatabaseObject changedObject, liquibase.diff.ObjectDifferences differences, liquibase.diff.output.DiffOutputControl control, liquibase.database.Database referenceDatabase, liquibase.database.Database comparisonDatabase, liquibase.diff.output.changelog.ChangeGeneratorChain chain) - Specified by:
fixChangedin interfaceliquibase.diff.output.changelog.ChangedObjectChangeGenerator- Overrides:
fixChangedin classliquibase.diff.output.changelog.core.ChangedPrimaryKeyChangeGenerator
-