Package liquibase.ext.hibernate.snapshot
Class ColumnSnapshotGenerator
- java.lang.Object
-
- liquibase.ext.hibernate.snapshot.HibernateSnapshotGenerator
-
- liquibase.ext.hibernate.snapshot.ColumnSnapshotGenerator
-
- All Implemented Interfaces:
liquibase.snapshot.SnapshotGenerator
public class ColumnSnapshotGenerator extends HibernateSnapshotGenerator
Columns are snapshotted along with with Tables inTableSnapshotGeneratorbut this class needs to be here to keep the default ColumnSnapshotGenerator from running. Ideally the column logic would be moved out of the TableSnapshotGenerator to better work in situations where the object types to snapshot are being controlled, but that is not the case yet.
-
-
Constructor Summary
Constructors Constructor Description ColumnSnapshotGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTo(liquibase.structure.DatabaseObject foundObject, liquibase.snapshot.DatabaseSnapshot snapshot)protected voidsnapshotColumn(liquibase.structure.core.Column column, liquibase.snapshot.DatabaseSnapshot snapshot)protected liquibase.structure.DatabaseObjectsnapshotObject(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot)protected liquibase.structure.core.DataTypetoDataType(String hibernateType, Integer sqlTypeCode)-
Methods inherited from class liquibase.ext.hibernate.snapshot.HibernateSnapshotGenerator
addsTo, findHibernateTable, getPriority, replaces, snapshot
-
-
-
-
Method Detail
-
snapshotObject
protected liquibase.structure.DatabaseObject snapshotObject(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot) throws liquibase.exception.DatabaseException, liquibase.snapshot.InvalidExampleException- Specified by:
snapshotObjectin classHibernateSnapshotGenerator- Throws:
liquibase.exception.DatabaseExceptionliquibase.snapshot.InvalidExampleException
-
addTo
protected void addTo(liquibase.structure.DatabaseObject foundObject, liquibase.snapshot.DatabaseSnapshot snapshot) throws liquibase.exception.DatabaseException, liquibase.snapshot.InvalidExampleException- Specified by:
addToin classHibernateSnapshotGenerator- Throws:
liquibase.exception.DatabaseExceptionliquibase.snapshot.InvalidExampleException
-
snapshotColumn
protected void snapshotColumn(liquibase.structure.core.Column column, liquibase.snapshot.DatabaseSnapshot snapshot) throws liquibase.exception.DatabaseException- Throws:
liquibase.exception.DatabaseException
-
-