Class ViewSnapshotGenerator

java.lang.Object
liquibase.ext.hibernate.snapshot.HibernateSnapshotGenerator
liquibase.ext.hibernate.snapshot.ViewSnapshotGenerator
All Implemented Interfaces:
liquibase.snapshot.SnapshotGenerator

public class ViewSnapshotGenerator extends HibernateSnapshotGenerator
View snapshots are not supported from hibernate, but this class needs to be implemented in order to prevent the default ViewSnapshotGenerator from running.
  • Constructor Details

    • ViewSnapshotGenerator

      public ViewSnapshotGenerator()
  • Method Details

    • snapshotObject

      protected liquibase.structure.DatabaseObject snapshotObject(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot) throws liquibase.exception.DatabaseException, liquibase.snapshot.InvalidExampleException
      Specified by:
      snapshotObject in class HibernateSnapshotGenerator
      Throws:
      liquibase.exception.DatabaseException
      liquibase.snapshot.InvalidExampleException
    • addTo

      protected void addTo(liquibase.structure.DatabaseObject foundObject, liquibase.snapshot.DatabaseSnapshot snapshot) throws liquibase.exception.DatabaseException, liquibase.snapshot.InvalidExampleException
      Specified by:
      addTo in class HibernateSnapshotGenerator
      Throws:
      liquibase.exception.DatabaseException
      liquibase.snapshot.InvalidExampleException