458459460461462463464465466467
public EbeanServer getDatabase() { return ebean; } protected void installDDL() { SpiEbeanServer serv = (SpiEbeanServer) getDatabase(); DdlGenerator gen = serv.getDdlGenerator(); gen.runScript(false, gen.generateCreateDdl()); }
465466467468469470471472473474
gen.runScript(false, gen.generateCreateDdl()); } protected void removeDDL() { SpiEbeanServer serv = (SpiEbeanServer) getDatabase(); DdlGenerator gen = serv.getDdlGenerator(); gen.runScript(true, gen.generateDropDdl()); }
290291292293294295296297298299
297298299300301302303304305306
192193194195196197198199200201202203
if (!rebuild && databaseExists) { return; } //Create a DDL generator SpiEbeanServer serv = (SpiEbeanServer) ebeanServer; DdlGenerator gen = serv.getDdlGenerator(); //Fire "before drop" event try { beforeDropDatabase(); } catch (Exception ex) {