} catch (SQLException e) {
throw new HibernateException(e);
}
} else {
writer.println("/* full drop-and-create script */");
printSQL(writer, hibernateConfig.generateDropSchemaScript(settings.getDialect()));
printSQL(writer, hibernateConfig.generateSchemaCreationScript(settings.getDialect()));
}
} catch (HibernateException e) {
writer.println("Error: unable to connect to the database.\n");
e.printStackTrace(writer);