Class SimpleMigrationScript

  • All Implemented Interfaces:
    MigrationScript<java.lang.Object,​java.lang.Object>

    public class SimpleMigrationScript
    extends SimpleTypedMigrationScript<java.lang.Object,​java.lang.Object>
    Provides a simple way to create a migration script with the necessary version and Consumer.
    Author:
    Johannes Rabauer
    • Constructor Detail

      • SimpleMigrationScript

        public SimpleMigrationScript​(MigrationVersion targetVersion,
                                     java.util.function.Consumer<Context<java.lang.Object,​java.lang.Object>> consumer)
        Parameters:
        targetVersion - to which the script is updating the object
        consumer - which consumes the object and updates it to the target version