Using a small test schema, without the flush() i added
to DatabaseIO.java below, i always get 0 byte file
output. i also added a close.
(Contribution)

public void write(Database model, String filename)
throws DdlUtilsException
{
   try {
     FileWriter filewriter = new FileWriter(filename);
     try {
         BeanWriter beanwriter = getWriter(new
BufferedWriter(filewriter));
         beanwriter.write(model);
         beanwriter.flush();
     } finally {
         filewriter.close();
     }
   } catch (Exception ex) {
     throw new DdlUtilsException(ex);
   }
}

Reply via email to