file = File.createTempFile("projectforge-schema", ".sql");
} catch (final IOException ex) {
log.error(ex.getMessage(), ex);
return ex.getMessage();
}
exp.exportSchema(HibernateUtils.getConfiguration(), file.getPath(), false, false);
String result;
try {
result = FileUtils.readFileToString(file, "UTF-8");
} catch (final IOException ex) {
log.error(ex.getMessage(), ex);