conf.setConnectionURL(props.getURL());
conf.setConnectionUserName(props.getLogin());
conf.setConnectionPassword(props.getPassword());
//HACK to suppress all warnings
getLogImpl(conf).setLevel(Log.INFO);
SchemaTool st = new SchemaTool(conf, SchemaTool.ACTION_DROPDB);
st.setIgnoreErrors(true);
st.setOpenJPATables(true);
st.setIndexes(false);
st.setPrimaryKeys(false);
st.run();
} finally {
conf.close();
}
}