package org.beanmaker.util;

import java.io.File;

public interface DbBeanFile extends DbBeanInterface {

    String getCode();
    String getOrigFilename();
    String getStoredFilename();
    String getAltDir();

    void setCode(final String code);
    void setOrigFilename(final String origFilename);
    void setStoredFilename(final String storedFilename);
    void setAltDir(final String altDir);

    boolean isStoredFilenameEmpty();
    boolean isAltDirEmpty();

    File getFile();
    String getInternalFilename();
    String getFileUrl();
}

@@ -542,11 +542,43 @@
 leUrl();
+%0A%0A    void makeSureFileExists();
 %0A%7D%0A

Add function to DbBeanFile interface (make sure file exists or create it)