Class DatabaseMigrationGenerator


  • public class DatabaseMigrationGenerator
    extends java.lang.Object
    DatabaseMigrationGenerator to generate ebean migration dll's.
    • Method Summary

      Modifier and Type Method Description
      static void create​(java.lang.String version, java.lang.String name)
      Generate database migration dll's.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DatabaseMigrationGenerator

        public DatabaseMigrationGenerator()
    • Method Detail

      • create

        public static void create​(java.lang.String version,
                                  java.lang.String name)
                           throws java.io.IOException
        Generate database migration dll's. Run this function once in development after you changed something in the database classes.
        Parameters:
        version - The semantic version string of the database.
        name - The name of this migration.
        Throws:
        java.io.IOException - If the files can't be written.