package edu.chl.proton.model;

/**
 * @author Stina Werme
 * Created by stinawerme on 01/05/17.
 */
public class File extends FileSystemEntity {

    public File(String name) {
        this.setName(name);

    }

    public File(String name, Folder parentFolder) {
        this.setName(name);
        parentFolder.addFile(this);
    }

    // What should be saved? Shouldn't this be in document?
    protected void save() {

    }
}

@@ -135,24 +135,56 @@
 emEntity %7B%0A%0A
+    private Document document;%0A%0A
     public F
@@ -198,16 +198,35 @@
 ing name
+, Document document
 ) %7B%0A    
@@ -249,16 +249,49 @@
 (name);%0A
+        this.document = document;
 %0A    %7D%0A%0A
@@ -318,16 +318,35 @@
 ng name,
+ Document document,
  Folder 
@@ -369,37 +369,39 @@
         this
-.setName(name
+(name, document
 );%0A        p
@@ -430,24 +430,193 @@
 is);%0A    %7D%0A%0A
+    protected Document getDocument() %7B%0A        return this.document;%0A    %7D%0A%0A    protected void setDocument(Document document) %7B%0A        this.document = document;%0A    %7D%0A%0A
     // What 

Add document reference to File