public static String generateEvolutionScript(EbeanServer server) {
        try {
            SpiEbeanServer spiServer = (SpiEbeanServer) server;
            CurrentModel ddl = new CurrentModel(spiServer);

            String ups = ddl.getCreateDdl();
            String downs = ddl.getDropAllDdl();

            if (ups == null || ups.trim().isEmpty()) {
                return null;
            }

            return
                "# --- Created by Ebean DDL\r\n" +
                "# To stop Ebean DDL generation, remove this comment and start using Evolutions\r\n" +
                "\r\n" +
                "# --- !Ups\r\n" +
                "\r\n" +
                ups +
                "\r\n" +
                "# --- !Downs\r\n" +
                "\r\n" +
                downs;
        } catch (IOException ex) {
            throw new RuntimeException(ex);
        }
    }
public static String generateEvolutionScript ( EbeanServer server ) { try { SpiEbeanServer spiServer = ( SpiEbeanServer ) server ; CurrentModel ddl = new CurrentModel ( spiServer ) ; String ups = ddl . getCreateDdl ( ) ; String downs = ddl . getDropAllDdl ( ) ; if ( ups == null || ups . trim ( ) . isEmpty ( ) ) { return null ; } return "# --- Created by Ebean DDL\r\n" + "# To stop Ebean DDL generation, remove this comment and start using Evolutions\r\n" + "\r\n" + "# --- !Ups\r\n" + "\r\n" + ups + "\r\n" + "# --- !Downs\r\n" + "\r\n" + downs ; } catch ( IOException ex ) { throw new RuntimeException ( ex ) ; } }
Helper method that generates the required evolution to properly run Ebean.

@param server the EbeanServer.
@return the complete migration generated by Ebean